This commit is contained in:
2025-04-09 02:36:37 +02:00
parent 6420554df2
commit d533ffd7a8
18 changed files with 576 additions and 77 deletions

View File

@@ -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"
// });
// }
}