asdf-games/other/structure.js

15 lines
276 B
JavaScript

const canvas = document.querySelector("#board canvas");
const ctx = canvas.getContext("2d");
const { width: w, height: h } = canvas;
const center = w / 2;
// Setup Code
// Looping Code
function loopme(t) {
requestAnimationFrame(loopme);
}
requestAnimationFrame(loopme);