-
Notifications
You must be signed in to change notification settings - Fork 0
/
snake.html
53 lines (51 loc) · 1.26 KB
/
snake.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
<!DOCTYPE html>
<html>
<head>
<title>
Snake
</title>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="static/theme.css">
</script>
</head>
<body>
<div class="header">
Snake
<p class="start">press space to start!</p>
<audio src=></audio>
<audio autoplay="autoplay" controls="controls"loop="loop" preload="auto" src="static/bgm.mp3"></audio>
</div>
<div class="intro">
<img src="static/poison.jpg">
The snake will lose 1 body segment if it drinks the poison.
<br>
<img src="static/food.jpg">
The snake will gain 1 body segment if it eats the food.
<br>
You can use End to quit the game at any time.
</div>
<div class="score">
Score :
<var class="var" id="score">
</var>
</div>
<div class="scene" id="sc">
<!--
<div class="snode">
</div>
<div class="pnode">
<img src="static/images/poison.jpg">
</div>
<div class="fnode">
<img src="static/images/food.jpg">
</div>
-->
</div>
<div class="footer">
All rights reserved by Dixon Qin and Kaki Shu.
<br>
School of Software, Tsinghua University, Beijing, China
</div>
<script src="static/script.js"></script>
</body>
</html>