First commit
This commit is contained in:
28
hGameTest/src/App.hx
Normal file
28
hGameTest/src/App.hx
Normal file
@@ -0,0 +1,28 @@
|
||||
import openfl.display.Sprite;
|
||||
import openfl.display.Stage;
|
||||
import openfl.events.Event;
|
||||
|
||||
|
||||
class App extends Sprite {
|
||||
|
||||
|
||||
public function new () {
|
||||
|
||||
super ();
|
||||
var game:Game = new Game(stage);
|
||||
game.onInit();
|
||||
stage.addEventListener(Event.ENTER_FRAME, game.onEnterFrame);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
static function main () {
|
||||
|
||||
var stage = new Stage (550, 400, 0xFFFFFF, App);
|
||||
js.Browser.document.body.appendChild (stage.element);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user