sokoban/script.js
2022-12-01 06:36:38 +01:00

9 行
332 B
JavaScript

import { generatePlayground } from '/modules/playground.mjs'
import { level1Blueprint } from '/modules/levels.mjs'
let canvas = document.getElementById('canvas');
let ctx = canvas.getContext('2d');
window.ctx = ctx
let playground = generatePlayground(level1Blueprint, canvas.width, canvas.height);
window.playground = playground;