forked from github/game-off-2013
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathindex.html
65 lines (65 loc) · 2.69 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
58
59
60
61
62
63
64
65
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" href="favicon.ico" />
<title>Custom Tetris</title>
<script src="js/classList.js"></script>
<script src="js/xy.js"></script>
<script src="js/game.js"></script>
<script src="js/engine.js"></script>
<script src="js/engine.network.js"></script>
<script src="js/pit.js"></script>
<script src="js/piece.js"></script>
<script src="js/cell.js"></script>
<script src="js/ai.js"></script>
<script src="js/player.js"></script>
<script src="js/attacker.random.js"></script>
<script src="js/attacker.human.js"></script>
<script src="js/attacker.ai.js"></script>
<script src="js/defender.human.js"></script>
<script src="js/defender.ai.js"></script>
<script src="js/gallery.js"></script>
<script src="js/app.js"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<div id="left"></div>
<div id="right"></div>
<div id="info">
<p>Score: <span id="score"></span></p>
<p>Status: <span id="status"></span></p>
</div>
<div id="setup">
<h1>Custom Tetris</h1>
<p>Change the way Tetris is played!</p>
<p>In a traditional Tetris setup, you play as a <em>defender</em>,
trying to position blocks correctly and remain alive as long as possible. This version
allows you to customize <strong>both</strong> roles: defending (as a human or AI) and
attacking (picking blocks as a human, AI or randomly). You can even change them during the gameplay.</p>
<p>All of these possibilities can be used in a networked multiplayer game as well,
resulting in a total of <strong>12 games in 1!</strong></p>
<button id="play">Play!</button>
<div id="attacker">
<span>Attacker: </span><select>
<option value="Human">Human</option>
<option value="AI">AI</option>
<option value="Random">Random</option>
<option value="Network">Network</option>
</select>
</div>
<div id="defender">
<span>Defender: </span><select>
<option value="Human">Human</option>
<option value="AI">AI</option>
<option value="Network">Network</option>
</select>
</div>
<p>This configuration is known as <strong id="description"></strong>.</p>
<p id="network"><button id="connect">Connect</button> https://<input type="text" id="server" size="8"/>.firebaseio.com/tetris/<input type="text" id="slug" size="5" /></p>
<footer>This contraption was made by <a href="http://ondras.zarovi.cz/">Ondřej Žára</a> for the <a href="https://github.com/github/game-off-2013">GitHub Game Off 2013</a> contest</footer>
</div>
<script>new Game.App();</script>
<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase.js'></script>
</body>
</html>