-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
96 lines (82 loc) · 3.41 KB
/
game.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang='en'>
<head>
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name='keywords' content='game html5 javascript html5 chrome webstore' />
<meta name='title' content='Alexander Korsak <alex.korsak@gmail.com>' />
<meta name='author' content='Alexander Korsak <alex.korsak@gmail.com>' />
<meta name='description' content='Tetris is a classic game.' />
<title>Tetris developed by Alexander Korsak (alex.korsak@gmail.com)</title>
<link rel="stylesheet" type="text/css" href="public/css/styles.css">
<script type="text/javascript" language="javascript" charset="utf-8" src='public/assets/common.js'></script>
<script type="text/javascript" language="javascript" charset="utf-8" src='public/assets/game.js'></script>
</head>
<body>
<div id="page">
<div id="page_inner">
<div class="menu">
<ul>
<li class="l1">
<a id="new_button" href="#">New</a>
</li>
</ul>
<span>by Alexander Korsak</span>
</div>
<div class="clear"></div>
<div id="high_scores" class="shadow">
<h3>High Scores:</h3>
<ul id="scores_table">
</ul>
</div>
<div id="game_container" class="shadow">
<!-- place there game -->
<div id="game_over" class="shadow" style="display:none">
<h1>Game Over!</h1>
<h3>Your Scores: <span id="scores">0</span></h3>
<h3>Name: <input type="text" id="username"/></h3>
<center>
<a href="#" id="save_button" class="shadow">Save</a>
<span>or <a href="#" id="close_button">Close</a>
</center>
</div>
</div>
<div id="game_scores" class="shadow">
<div class='left' style='float: left;width: 70px;'>
<h3>Scores:</h3>
<b><p id="scores_number">0</p></b>
<br />
<h3>Level:</h3>
<b><p id="level_number">0</p></b>
</div>
<div class='right'>
<h3>Next Shape:</h3>
<div id='current_shape_container'>
</div>
</div>
</div>
<div id="game_controls" class="shadow">
<div class="box">
<h3>Game controls:</h3>
<ul>
<li><b>b</b> - begin</li>
<li><b>r</b> - restart</li>
<li><b>p</b> - pause/resume</li>
</ul>
</div>
<div class="box">
<h3>Shape controls:</h3>
<ul>
<li><b>a/left arrow</b> - move to the left</li>
<li><b>d/right arrow</b> - move to the right</li>
<li><b>s/bottom arrow</b> - move to the bottom quickly</li>
<li><b>space/top arrow</b> - rotate the shape</li>
</ul>
</div>
</div>
<div class="clear"></div>
<iframe src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Ftetris-app.heroku.com%2F&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
</div>
</div>
</body>
</html>