First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
committed by Andreas Schaafsma
commit 6e1a5f9fe5
18475 changed files with 3309357 additions and 0 deletions

21
hGameTest/src/Main.hx Normal file
View File

@@ -0,0 +1,21 @@
import openfl.display.Sprite;
import openfl.display.Stage;
import openfl.events.Event;
class Main extends Sprite {
public function new () {
super ();
stage.frameRate = 1000;
var game:Game = new Game(stage);
game.onInit();
stage.addEventListener(Event.ENTER_FRAME, game.onEnterFrame);
stage.addEventListener(Event.RESIZE,onResize);
stage.application.window.resize(1920, 1080);
stage.application.window.title = "Kanker";
}
private function onResize (event:Event):Void {
//Here we can do shit with window scaling
//stage.stageWidth;
//stage.stageHeight;
}
}