7.HTML5--飞机大战
3 月,跳不动了?>>> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>飞机大战</title> </head> <body> <canvas id="myCanvas" width="320" height="480" style="border: solid"> 你的浏览器不支持canvas画布元素,请更新浏览器获得演示 </canvas> <div id="message_txt" style="display: block;">飞机大战</div> <div id="score_txt" style="display: block;">分数:0分</div> <script type="text/javascript"> var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); document.addEventListener("keydown",onkeydown); var Plan = function (image,x,y,n) { this.image = image; this.x = x; this.y = y; this.originX = x; this