Skip to content

Commit 52487f1

Browse files
committed
add index.html
1 parent 4eecbfb commit 52487f1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

index.html

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Hello Cocos2d-JS</title>
5+
<script type="text/javascript" src="cocos2d-js-v3.10-lite.js" charset="UTF-8"></script>
6+
<script src="scripts/Utils.js"></script>
7+
<script src="scripts/BrickSprite.js"></script>
8+
<script src="scripts/Tetrimino.js"></script>
9+
<script src="scripts/Grid.js"></script>
10+
<script src="scripts/GameState.js"></script>
11+
<script src="scripts/TetrisScene.js"></script>
12+
<style>
13+
body {
14+
background-color: black;
15+
}
16+
.ico-sound {
17+
position: fixed;
18+
right: 10px;
19+
top: 10px;
20+
cursor: default;
21+
width: 50px;
22+
height: 50px;
23+
}
24+
.ico-sound:hover {
25+
box-shadow: 0 0 10px white;
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<img class="ico-sound" src="sound.png"/>
31+
<canvas id="gameCanvas" width="800" height="450"></canvas>
32+
<audio id="audio" src="sound/soundtrack.mp3" autoplay></audio>
33+
<audio id="click-sound" src="sound/click.ogg"></audio>
34+
<audio id="clear-sound" src="sound/clear.ogg"></audio>
35+
<audio id="levelup-sound" src="sound/levelup.ogg"></audio>
36+
<script src="scripts/main.js"></script>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)