随笔分类 -  starling

摘要:var viewRect:Rectangle = new Rectangle(0,0,stage.fullScreenWidth,stage.fullScreenHeight);//获取设备的窗口大小_starling = new Starling(MainScreen,stage,viewRect);//将设备窗口大小做为starling的视窗大小_starling.stage.stageWidth = 1280;//设置starling舞台宽为我们制作时宽_starling.stage.stageHeight = 800;//设置starling舞台高为我们制作时高Global.stage 阅读全文
posted @ 2013-07-22 17:19 洪小瑶 阅读(557) 评论(0) 推荐(0)
摘要:第四步: 游戏界面切换我们假设我们已经把四个场景都写好了1.InGameScreen:InGame;2.WelcomeScreen:Welcome;3.AboutScreen:About;4.OverScreen:Over;那我们怎样在这之间切换?-----自定义事件events下 创建一个自定义事件 NavEvent.as用于发送事件NavEvent.as类 1 package events 2 { 3 import starling.events.Event; 4 5 public class NavEvent extends Event 6 { 7 ... 阅读全文
posted @ 2012-12-08 15:28 洪小瑶 阅读(447) 评论(0) 推荐(0)
摘要:最近把hungry hero看了,也看了一下和别人交流的游戏。决定还是系统过一遍吧,把一般游戏基本思路写下来开发工具 :1.flash builder 4.72.Starling开始新建-actionScript手机项目 在xml加入 <renderMode>direct</renderMode>开启GPU加速第一步:游戏图标在生成的xml中找到icon项,如下 <!-- <icon> <image16x16></image16x16> <image29x29></image29x29> <imag 阅读全文
posted @ 2012-12-07 22:59 洪小瑶 阅读(407) 评论(0) 推荐(0)