摘要:
最近跟着html5中文网的教程写了个HTML5的游戏,做个小结啦!先给个游戏截图一、建立的对象模块该部分包含游戏中各个对象的建立和实例化1、公用的游戏对象(public Object)部分——其他对象均继承Inherit该对象function GameObject() { this.x = 0;//x 坐标 this.y = 0;//y 坐标 this.image = null; //图片 } 2、蘑菇对象function Mushroom() {}; Mushroom.prototype = new ... 阅读全文
posted @ 2012-09-12 10:32
Joanna Qian
阅读(315)
评论(0)
推荐(0)
浙公网安备 33010602011771号