- haxepunk
- graphics
- Graphic
- Image
- Text
- AnimatedSprite
- TileMap
- Mesh
- Light
- graphics
- ParticleEmitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main extends Engine | |
{ | |
override function init() | |
{ | |
// resources added in Engine are kept in memory | |
resources.addTexture("graphics/player.png"); | |
// if a Scene resources aren't all available push preloader on scene stack until they are | |
preloader = new MyCustomPreloadingScreen(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Entity extends com.haxepunk.Entity | |
{ | |
public var worldCollider : IEntityBehavior; | |
public var moveHandler : IEntityBehavior; | |
override public function update () | |
{ | |
worldCollider.update(); | |
moveHandler.update(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.haxepunk.HXP; | |
import com.haxepunk.Entity; | |
import com.haxepunk.graphics.Text; | |
import com.haxepunk.graphics.Image; | |
import com.haxepunk.utils.Input; | |
class Paper extends Entity | |
{ | |
var stringIterator:Int; | |
var showText:Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.haxepunk.utils.Input; | |
import com.haxepunk.utils.Joystick; | |
class Inputs | |
{ | |
static function define_input (name:String, keys:Array<Int>) | |
{ | |
Input.define(name, keys); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.haxepunk.Engine; | |
import com.haxepunk.utils.Input; | |
import com.haxepunk.utils.Key; | |
import flash.events.KeyboardEvent; | |
import flash.Lib; | |
class Main extends Engine | |
{ | |
override public function init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.events.Event; | |
import flash.display.Sprite; | |
import flash.system.System; | |
import flash.text.TextField; | |
import flash.text.TextFormat; | |
import flash.Lib; | |
class Main | |
{ | |
/** |
NewerOlder