Update JS

This commit is contained in:
Bluwww 2025-11-24 14:06:03 +07:00
parent d326cbadb0
commit d4495e4189

View File

@ -0,0 +1,18 @@
"use strict";
var canvasWidth = 1280;
var canvasHeight = 650;
var c = undefined
var ctx = undefined
window.onload = function () {
init()
}
function init() {
c = document.getElementById("canvas");
ctx = c.getContext('2d');
document.addEventListener('keydown', keyDownPressed, false);
document.addEventListener('keyup', keyUpPressed, false);
gameloop();
}