forked from rao1219/olhandicrafts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnake.php
195 lines (131 loc) · 5.49 KB
/
snake.php
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>轻松一刻 - Handicrafts</title>
<?php
session_start();
include 'templete/header.html';
?>
<link href="./2048_js/main.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="style/images/favicon.ico" />
<link rel="stylesheet" href="style/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="style/css/index.css">
<script src="style/js/jquery.min.js"></script>
<script src="style/bootstrap/js/bootstrap.min.js"></script>
<script type='text/javascript' src='style/js/jquery.lazyload.js'></script>
<body>
<link type="text/css" rel="stylesheet" href="snake_src/snake.css">
<link rel="stylesheet" href="snake_src/products.css" type="text/css">
<div id="container">
<div id="header_wrap">
</div>
<div id="middle_wrap">
<font size=16> 贪吃蛇</font>
<img width=300 height=150 src="style/images/snake.jpg">
<div id="middle">
<div id="box">
<div id="snake" style="left: 40px; top: 240px;"></div>
</div>
<div style="clear: both"></div>
<!-- <div id="navigator">
<div id="joystick">
<a href="#" class="nav" rev="right" id="left"></a>
<a href="#" class="nav" rev="down" id="up"></a>
<a href="#" class="nav" rev="left" id="right"></a>
<a href="#" class="nav" rev="up" id="down"></a>
</div>
</div> -->
</div> <!-- middle -->
</div> <!-- middle_wrap -->
</div> <!-- container -->
<div id="overlay" style="width: 1266px; height: 1616px; display: block;"></div>
<div id="overlayBox" style="left: 133px; top: 351.667px; display: block;">
<p id="overlayNote">贪吃蛇</p>
<p>点击<a href="http://www.bulgaria-web-developers.com/projects/javascript/snake/#" id="overlayClose">这里</a><b>输入Esc开始游戏</b></p>
</div>
<script type="text/javascript" src="snake_src/snake.js"></script>
<script type="text/javascript" src="snake_src/init.js"></script>
<div class="container">
<div class="heading">
<h1 class="title">2048 </h1>
<div class="scores-container">
<div class="score-container">2148<div class="score-addition">+2148</div></div>
<div class="best-container">2324</div>
</div>
</div>
<div class="above-game">
<p class="game-intro">移动数字使得到 <strong>2048!</strong></p>
<a class="restart-button">重新开始</a>
</div>
<div class="game-container">
<div class="game-message">
<p></p>
<div class="lower">
<a class="keep-playing-button">Keep going</a>
<a class="retry-button">再来一次</a>
</div>
</div>
<div class="grid-container">
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
</div>
<div class="tile-container"><div class="tile tile-2 tile-position-1-1 tile-new"><div class="tile-inner">2</div></div><div class="tile tile-64 tile-position-1-2 tile-new"><div class="tile-inner">64</div></div><div class="tile tile-8 tile-position-1-3 tile-new"><div class="tile-inner">8</div></div><div class="tile tile-2 tile-position-1-4 tile-new"><div class="tile-inner">2</div></div><div class="tile tile-4 tile-position-2-2 tile-new"><div class="tile-inner">4</div></div><div class="tile tile-256 tile-position-2-3 tile-new"><div class="tile-inner">256</div></div><div class="tile tile-16 tile-position-2-4 tile-new"><div class="tile-inner">16</div></div><div class="tile tile-2 tile-position-3-3 tile-new"><div class="tile-inner">2</div></div><div class="tile tile-8 tile-position-3-4 tile-new"><div class="tile-inner">8</div></div><div class="tile tile-2 tile-position-4-3 tile-new"><div class="tile-inner">2</div></div><div class="tile tile-4 tile-position-4-4 tile-new"><div class="tile-inner">4</div></div></div>
</div>
<p class="game-explanation">
使用 <strong>方向键</strong> 来移动小格
</p>
</div>
<script src="./2048_js/bind_polyfill.js"></script>
<script src="./2048_js/classlist_polyfill.js"></script>
<script src="./2048_js/animframe_polyfill.js"></script>
<script src="./2048_js/keyboard_input_manager.js"></script>
<script src="./2048_js/html_actuator.js"></script>
<script src="./2048_js/grid.js"></script>
<script src="./2048_js/tile.js"></script>
<script src="./2048_js/local_storage_manager.js"></script>
<script src="./2048_js/game_manager.js"></script>
<script src="./2048_js/application.js"></script>
<div align="right"><button type="button" class="btn btn-primary">Primary</button></div>
</body>
</html>