-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (45 loc) · 1.41 KB
/
index.html
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Game Of Life</title>
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/Game.js"></script>
<script type="text/javascript" src="lib/Interface.js"></script>
<script type="text/javascript" src="lib/Debug.js"></script>
</head>
<body>
<fieldset class="configuration">
<legend>Configuration</legend>
<div>
<label for="gameSpeed">Game speed:</label>
<br>
<select name="gameSpeed" id="gameSpeed" onchange="Interface.setSpeed();"></select>
</div>
<fieldset>
<legend>Cell formation:</legend>
<select name="cellFormation" id="cellFormation"></select>
<button onclick="Interface.applyConfiguration();">Apply & Reset</button>
</fieldset>
<button onclick="Interface.toggleGame();" id="toggleGame">Start</button>
<label class="dashboard"></label>
</fieldset>
<div class="stage">
<div class="projector"><!-- projects shadows --></div>
</div>
<script type="text/javascript">
// initialize the whole game and pass settings
Interface.initialize({
//debug : true,
//cellColor : 0,
//cellSize : 4,
cellOffset : 1,
//cellBlur : 0,
//gridColor : 0,
gridX : 100,
gridY : 50
});
</script>
</body>
</html>