This commit is contained in:
Ruben Müller 2013-06-13 22:02:36 +02:00
parent 2f874faa2e
commit 9d6426a6f1
5 changed files with 467 additions and 888 deletions

View File

@ -1,6 +1,8 @@
compile: clean compile: clean
for file in `cat compile.order`; do coffee -b -p -c src/$$file >> build/game.js; done for file in `cat compile.order`; do coffee -b -p -c src/$$file >> build/game.js; done
cp index.html build/index.html cp src/index.html build/index.html
clean: clean:
rm -rf build/* rm -rf build/*
alle: compile

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,9 +3,9 @@ context = canvas.getContext '2d'
context.textAlign = 'center'; context.textAlign = 'center';
gamestates = gamestates =
RUN = 'RUN' RUN: 'RUN'
WIN = 'WIN' WIN: 'WIN'
OVER = 'OVER' OVER: 'OVER'
config = config =
gamestate: gamestates.RUN gamestate: gamestates.RUN

11
src/index.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>jar</title>
<meta charset="UTF-8" />
</head>
<body>
<canvas id="canvas"></canvas>
<script src="game.js"></script>
</body>
</html>