2013年5月17日

摘要: 这一节给大家讲解一下Citrus的关卡管理package box2dstarling { import starling.utils.AssetManager; import box2dstarling.ALevel; import box2dstarling.MyGameData; import citrus.core.IState; import citrus.core.starling.StarlingCitrusEngine; import citrus.utils.LevelManager; [SWF(frameRate="60")] public class M 阅读全文
posted @ 2013-05-17 01:01 苍蝇也是鸟 阅读(479) 评论(0) 推荐(0)
摘要: 这一节我给大家介绍一下citrus.system.EntityEntity类可以自由的组合行为,使用方式类似装饰者模式,但却有别于装饰者_heroEntity = new Entity("heroEntity"); _physics = new DraggableHeroPhysicsComponent("physics", {x:200, y:270, width:40, height:60}); var input:InputComponent = new InputComponent("input"); var collisio 阅读全文
posted @ 2013-05-17 00:57 苍蝇也是鸟 阅读(404) 评论(0) 推荐(0)
摘要: Citrus对象的销毁有三种方式// Inside a class which extends CitrusObject e.g. CitrusSprite, APhysicsObjects...kill = true;// If you have an access to the variable of the object :hero.kill = true;// Or within a State class (the previous code works too) :remove(hero);cirtusEngine并不销毁游戏对象只是标记销毁,所以使用cirtusEngine最好使 阅读全文
posted @ 2013-05-17 00:39 苍蝇也是鸟 阅读(450) 评论(0) 推荐(0)
摘要: 这一节我给大家 介绍两个很实用的开发工具1.TexturePackerUI 官方地址http://www.codeandweb.com/texturepackerTexturePackerUI是一款很优秀的图形装箱工具,但是不是免费的。作者对开发者是比较友好的,你可以试着去申请一个免费的licence;TexturePackerUI可以导出多种格式的配置,选择你需要的格式2.PhysicsEditorhttp://www.codeandweb.com/physicseditorPhysicsEditor是一个很方便的刚体编辑工具,也是收费的。尤其是它的魔术棒功能,帮我们节省了不少编辑时间。它可 阅读全文
posted @ 2013-05-17 00:24 苍蝇也是鸟 阅读(629) 评论(0) 推荐(0)

导航