-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathindex.html
104 lines (81 loc) · 3 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
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
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<title>Three.js Tetris</title>
<style>
body {margin: 0; padding: 0; overflow: hidden;}
#menu {
position: absolute;
width: 200px;
height: 250px;
top: 50%; left: 50%;
margin: -125px 0 0 -100px;
text-align: center;
border: 3px solid #fff;
border-radius: 15px;
background-color: #E36B23;
box-shadow: 2px 10px 5px #888;
}
#menu p {font-weight: bold; color: #fff;}
#menu p a {color: #fff;}
#menu button {
width: 80px;
height: 25px;
background-color: #C44032;
border: 3px solid #fff;
border-radius: 5px;
font-size: 14px;
font-weight: bold;
color: #fff;
}
#points {
position: absolute;
width: 120px;
height: 16px;
padding: 12px;
top: 20px;
right: 80px;
border: 3px solid #fff;
border-radius: 15px;
background-color: #E36B23;
box-shadow: 2px 10px 5px #888;
font-size: 14px;
font-weight: bold;
color: #fff;
text-align: right;
display: none;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<audio id="audio_theme" src="music/tetris.mp3" preload="auto"></audio>
<audio id="audio_move" src="music/move.mp3" preload="auto"></audio>
<audio id="audio_collision" src="music/collision.mp3" preload="auto"></audio>
<audio id="audio_gameover" src="music/gameover.mp3" preload="auto"></audio>
<audio id="audio_score" src="music/cash.mp3" preload="auto"></audio>
<div id="menu">
<h1>Three.js Tetris</h1>
<p>
Movement: arrows<br>
Rotation: AD/SW/QE<br>
Author: <a href="http://www.smashinglabs.pl">smashinglabs.pl</a>
</p>
<button id="play_button">Play</button>
</div>
<div id="points">
0
</div>
<script type="text/javascript" src="js/Three.js"></script>
<script type="text/javascript" src="js/Stats.js"></script>
<script type="text/javascript" src="js/tetris.js"></script>
<script type="text/javascript" src="js/tetris.board.js"></script>
<script type="text/javascript" src="js/tetris.block.js"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/Blox_400.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('#menu h1');
Cufon.replace('#points');
</script>
</body>
</html>