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
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:
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';
gamestates =
RUN = 'RUN'
WIN = 'WIN'
OVER = 'OVER'
RUN: 'RUN'
WIN: 'WIN'
OVER: 'OVER'
config =
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>