WIP
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
import openfl.display.Window;
|
||||
import assets.Scanner;
|
||||
import game.video.Mode;
|
||||
import openfl.events.KeyboardEvent;
|
||||
import openfl.display.Sprite;
|
||||
import openfl.display.Stage;
|
||||
import openfl.events.Event;
|
||||
import game.Input;
|
||||
import game.Game;
|
||||
import game.video.Mode;
|
||||
|
||||
class Main extends Sprite {
|
||||
public function new () {
|
||||
@@ -24,26 +19,13 @@ class Main extends Sprite {
|
||||
stage.addEventListener(KeyboardEvent.KEY_UP,Input.onKeyIsUp);
|
||||
stage.addEventListener(Event.RESIZE,onResize);
|
||||
game.onInit();
|
||||
//Mode.setVideoMode(1280, 960);
|
||||
|
||||
|
||||
}
|
||||
private function onResize (event:Event):Void {
|
||||
|
||||
//Here we can do shit with window scaling
|
||||
//stage.stageWidth;
|
||||
//stage.stageHeight;
|
||||
}
|
||||
|
||||
// static function main () {
|
||||
// // Bootstrap the OpenFL project
|
||||
// var application = new lime.app.Application();
|
||||
// application.createWindow({
|
||||
// hidden: false,
|
||||
// x: 0,
|
||||
// y: 0,
|
||||
// width: 800,
|
||||
// height: 600,
|
||||
// title: "DSTEngine Window"
|
||||
// });
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user