Skip to content

Instantly share code, notes, and snippets.

@PifyZ
Last active August 29, 2015 14:08
Show Gist options
  • Save PifyZ/08b21e76d5e91f0f70ca to your computer and use it in GitHub Desktop.
Save PifyZ/08b21e76d5e91f0f70ca to your computer and use it in GitHub Desktop.
Haxe vs. Bootmonkey
pack state
use entity.Hero
use hx.HxState
class Fight < HxState {
public static This inst
Hero hero
new() {
super()
inst = this
hero = Creatures.hero
}
Void update(_) {
super.update(_)
}
}
package state;
import entity.Hero;
import hx.HxState;
class Fight extends HxState {
public static var inst : Fight;
public var hero : Hero;
public function new() {
super();
inst = this;
hero = Creatures.hero;
}
override public function update(_):Void {
super.update(_);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment