[jsp]代码库
<html>
<head lang="en">
<meta charset="UTF-8">
<title>网页版2048小游戏</title>
<link rel="stylesheet" href="css/2048.css"/>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/support.js"></script>
<script src="js/animation.js"></script>
<script src="js/main.js"></script>
<script src="js/game.js"></script>
</head>
<body>
<header>
<h1>2048</h1>
<a href="javascript:newGame();" id="newGameButton">NEW Game</a>
<p>score: <span id="score">0</span></p>
</header>
<div id="grid-container">
<div class="grid-cell" id="grid-cell-0-0"></div>
<div class="grid-cell" id="grid-cell-0-1"></div>
<div class="grid-cell" id="grid-cell-0-2"></div>
<div class="grid-cell" id="grid-cell-0-3"></div>
<div class="grid-cell" id="grid-cell-1-0"></div>
<div class="grid-cell" id="grid-cell-1-1"></div>
<div class="grid-cell" id="grid-cell-1-2"></div>
<div class="grid-cell" id="grid-cell-1-3"></div>
<div class="grid-cell" id="grid-cell-2-0"></div>
<div class="grid-cell" id="grid-cell-2-1"></div>
<div class="grid-cell" id="grid-cell-2-2"></div>
<div class="grid-cell" id="grid-cell-2-3"></div>
<div class="grid-cell" id="grid-cell-3-0"></div>
<div class="grid-cell" id="grid-cell-3-1"></div>
<div class="grid-cell" id="grid-cell-3-2"></div>
<div class="grid-cell" id="grid-cell-3-3"></div>
</div>
</body>
</html>
[代码运行效果截图]
[源代码打包下载]
初级程序员
by: JackCool 发表于:2018-07-09 13:08:57 顶(0) | 踩(0) 回复
为什么每个都没有完整的代码呢
回复评论