Este commit está contenido en:
Ronan 2022-12-05 16:56:24 +01:00
padre 78af6d87b0
commit 789b9875ff

Ver fichero

@ -5,7 +5,7 @@ import { MoveDirection } from '/modules/enums.mjs'
let canvas = document.getElementById('canvas');
let ctx = canvas.getContext('2d');
window.ctx = ctx
let playground = generatePlayground(level2Blueprint, canvas.width, canvas.height);
let playground = generatePlayground(level1Blueprint, canvas.width, canvas.height);
window.addEventListener("keydown", (event) => {
if (!event.defaultPrevented) {
switch (event.key) {