ts-demo-snake/dist/index.html
2021-07-21 10:06:12 +08:00

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>