坚信科学,分享技术

Tag Archives: rpg游戏

d.yang同志的无名氏的代码学习记录-flex 2d rpg游戏demo

[文章作者:陈臻 本文版本:v1.0 最后修改:2009.2.23 转载请注明原文链接:http://www.54chen.com/c/469] 略去一千字废话,要谢谢地阳同学把人家的包全改成了funcat...哪里来的胖猫。。。 先上截图: flex builder3编译后运行,鼠标控制小女孩,按空格时小男孩坐下。 只能大概对初始化的代码注释下,其他的自己看了,抛砖引玉: private function initApp():void { this.contextMenu.hideBuiltInItems(); sceneHolder = new UIComponent(); this.addChildAt(sceneHolder, 0); scene = new RPGScene(); sceneHolder.addChild(scene); //主屏幕在浏览器的位置设置 sceneHolder.x = 0;//(this.stage.stageWidth - 1000)/2; sceneHolder.y = 0;//(this.stage.stageHeight -631)/2; //男孩 参数:图片地址,宽度,高度,x,y,速度 role = new …

Continue reading

Posted in WEB相关 | Tagged , , | 4 Comments