Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:45:01 +02:00
commit f4a01d6a69
11601 changed files with 4206660 additions and 0 deletions

20
C#/TSEngine/app.ts Normal file
View File

@@ -0,0 +1,20 @@
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;