-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (79 loc) · 2.61 KB
/
index.html
File metadata and controls
80 lines (79 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<meta name="viewport"
content="width=device-width,height=device-height,initial-scale=1,user-scalable=yes">
<head>
<script src="imports/lodash.js"></script>
<script src="util.js"></script>
<script src="bitmanager.js"></script>
<script src="canvaswrapper.js"></script>
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body onload="init()">
<div id="container">
<div id="controls">
<div class=basic-info>
<div>
Pause/continue: space
</div>
<div id="checkboxes">
<label for="toggle_obvious">
<input type="checkbox" id="toggle_obvious"
onclick="showObviousToggled()">
</input>
Use more revealing colors
</label>
<label for="toggle_fast">
<input type="checkbox" id="toggle_fast"
onclick="fastToggled()">
</input>
Run faster than one calculation pass per frame.
</label>
<label for="toggle_debug_controls">
<input type="checkbox" id="toggle_debug_controls" checked
onclick="showDebugControlsToggled()">
</input>
Show debugging controls
</label>
<a href="https://github.com/ericu/CellTower">Source</a>
</div>
</div>
<div id="debugging-controls" style="display: none">
<button type="button" onclick="toggleRun()" id="toggle_run">
toggleRun
</button>
<div id="fps_parent">
<span>FPS: </span>
<span id="fps">0.0</span>
</div>
<button type="button" onclick="step()">step</button>
<button type="button" onclick="test()">test</button>
<label for="toggle_test">
<input type="checkbox" id="toggle_test" checked
onclick="showTestToggled()">
</input>
Show test canvas
</label>
<label for="toggle_debug">
<input type="checkbox" id="toggle_debug" checked
onclick="showDebugToggled()">
</input>
Show debug area
</label>
</div>
</div>
<div id="inner-container">
<div id="canvas-container" class="canvas-container">
<canvas id="canvas" width="76" height="70"></canvas>
</div>
<div id="canvas2-container" class="canvas-container">
<canvas id="canvas2"></canvas>
</div>
<textarea rows="40" cols="40" id="debug"></textarea>
</div>
</div>
<script src="main.js"></script>
<script src="keyboard.js"></script>
<script src="scoreboard.js"></script>
<script src="tower.js"></script>
</body>
</html>