-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
38 lines (38 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<title>Hello Cocos2d-JS</title>
<script type="text/javascript" src="cocos2d-js-v3.10-lite.js" charset="UTF-8"></script>
<script src="scripts/Utils.js"></script>
<script src="scripts/BrickSprite.js"></script>
<script src="scripts/Tetrimino.js"></script>
<script src="scripts/Grid.js"></script>
<script src="scripts/GameState.js"></script>
<script src="scripts/TetrisScene.js"></script>
<style>
body {
background-color: black;
}
.ico-sound {
position: fixed;
right: 10px;
top: 10px;
cursor: default;
width: 50px;
height: 50px;
}
.ico-sound:hover {
box-shadow: 0 0 10px white;
}
</style>
</head>
<body>
<img class="ico-sound" src="sound.png"/>
<canvas id="gameCanvas" width="800" height="450"></canvas>
<audio id="audio" src="sound/soundtrack.mp3" autoplay></audio>
<audio id="click-sound" src="sound/click.ogg"></audio>
<audio id="clear-sound" src="sound/clear.ogg"></audio>
<audio id="levelup-sound" src="sound/levelup.ogg"></audio>
<script src="scripts/main.js"></script>
</body>
</html>