
演示网站 会掉落的飞机

编写代码
<body > <div id="gamepage"> <canvas id="canvas1" width="360" height="460"></canvas> </div> <div id="gameend" style="display:none;width:200px;height:150px;margin-top: 170px;margin-left: 80px;background: #30A5EB;"> <div style="width:200px;height:50px;"> <span style="width: 200px;height: 50px;background: #6C7DD8;font-size: 27px;text-align: center;line-height: 44px;" >game over!</span> </div> <div style="width:200px;height:50px;margin-top: 50px; *"> <span id="score" style="width: 200px;height: 50px;font-size: 27px;text-align: center;line-height: 44px;" ></span> </div> </div> <div id="gamestart" onclick="startgame()" style="background-color: rgba(0,0,0,.8);text-align: center;font-weight: bold;overflow: hidden;position: fixed;"> <div style="color: rgb(254, 240, 2); font-size: 2.6em;">游戏说明: </div> <div style="color: rgb(254, 240, 2); font-size: 1.3em;margin-top:4.0em;text-align: left;"> 操作说明 </br> 【1.长按屏幕飞机向上飞行】【2.双击屏幕飞机向上加速飞行】【3.撞击障碍物游戏失败】<br> </div> </div> <div id="gameendbtn" class="mybtn" style="display:none;margin-top: 269px;margin-left: 108px;" onclick="restart()">重新开始</div> </body>
注册免费下载
抱歉,隐藏内容须成功 评论本文 后刷新可见!
