update
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import openfl.display.Window;
|
||||
import assets.Scanner;
|
||||
import game.video.Mode;
|
||||
import openfl.events.KeyboardEvent;
|
||||
@@ -12,8 +13,6 @@ class Main extends Sprite {
|
||||
public function new () {
|
||||
super ();
|
||||
this.addEventListener(Event.ADDED_TO_STAGE, onInit);
|
||||
//stage.application.window.resize(1920, 1080);
|
||||
//stage.application.window.title = "Kanker";
|
||||
}
|
||||
private function onInit(e:Event)
|
||||
{
|
||||
@@ -28,8 +27,23 @@ class Main extends Sprite {
|
||||
//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