initial commit

This commit is contained in:
entoreor 2020-04-01 04:41:35 -06:00
commit 0ef5a26f95
5 changed files with 47 additions and 0 deletions

8
fengari-web.js Normal file

File diff suppressed because one or more lines are too long

15
game/main.lua Normal file
View File

@ -0,0 +1,15 @@
print("love start", test)
function love.load()
counter = 0
end
function love.update(dt)
counter = counter+dt
end
function love.draw()
love.graphics.print("hello!!\n"..counter, 20, 20)
end
print("love end")

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Infatuated</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="fengari-web.js" type="text/javascript"></script>
<script src="main.lua" type="application/lua" async></script>
</head>
<body>
<canvas id="infatuated-canvas" width="800" height="600"></canvas>
</body>
</html>

3
main.lua Normal file
View File

@ -0,0 +1,3 @@
love = {}
love.graphics = {}

8
style.css Normal file
View File

@ -0,0 +1,8 @@
body {
background-color: #111;
color: #ddd;
font-family: sans-serif;
}
canvas {
border: 1px solid #777;
}