31 lines
772 B
HTML
31 lines
772 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>贪食蛇</title>
|
|
<script defer src="bundle.js"></script></head>
|
|
<body>
|
|
<!-- 主容器 -->
|
|
<div class="main">
|
|
<!-- 游戏区域 -->
|
|
<div class="stage">
|
|
<!-- 蛇 -->
|
|
<div class="snake" id="snake">
|
|
<div></div>
|
|
</div>
|
|
<!-- 食物 -->
|
|
<div class="food" id="food">
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 统计区域 -->
|
|
<div class="point">
|
|
<div class="score">Score: <span id="score">0</span></div>
|
|
<div class="level">Level: <span id="level">1</span></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|