Initial commit
This commit is contained in:
20
C#/TSEngine/app.ts
Normal file
20
C#/TSEngine/app.ts
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user