Last active
August 29, 2015 14:08
-
-
Save PifyZ/08b21e76d5e91f0f70ca to your computer and use it in GitHub Desktop.
Haxe vs. Bootmonkey
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
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(_) | |
} | |
} |
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
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