Sha256: 5f4eb199b1ec4afc8b7ae3ef47ce805c9994ab97c682826b5fd9af1f8ed65fd9
Contents?: true
Size: 981 Bytes
Versions: 1
Compression:
Stored size: 981 Bytes
Contents
package states { import citrus.core.*; import citrus.physics.box2d.*; import citrus.objects.platformer.box2d.*; import citrus.math.*; import flash.display.*; public class GameState extends State { public function GameState() { super(); } override public function initialize():void { super.initialize(); var box2D:Box2D=new Box2D("box2d"); add(box2D); box2D.visible=true; var hero:Hero=new Hero('hero'); add(hero); hero.x=320; hero.y=200; view.camera.setUp(hero, new MathVector(400,300)); var platform:Platform=new Platform('platform',{width: 1000, height: 20}); add(platform); platform.x=-100; platform.y=400; } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
h4oflashsdk-1.0.13 | lib/flashsdk/generators/templates/CitrusActionScript3GameState.as |