gedöns
This commit is contained in:
parent
2f874faa2e
commit
9d6426a6f1
5 changed files with 467 additions and 888 deletions
4
Makefile
4
Makefile
|
@ -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
|
288
build/game.js
288
build/game.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
11
src/index.html
Normal 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>
|
Loading…
Reference in a new issue