Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/C#/TSEngine/app.ts
2022-09-04 12:45:01 +02:00

21 lines
438 B
TypeScript

var engine: TSE.Engine;
var handleSize = function () {
const canvas = document.getElementById("GameEngine") as HTMLCanvasElement;
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
engine.resize();
}
/**
* The main entrypoint to the Application.
* */
window.onload = function () {
engine = new TSE.Engine("GameEngine");
handleSize();
engine.start();
}
window.onresize = handleSize;