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
|
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
|
368
build/game.js
368
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';
|
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
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