draught/www/index.js

10 lines
235 B
JavaScript
Raw Normal View History

2021-06-25 18:02:45 +01:00
import { init_game } from "draught";
import { memory } from "draught/draught_bg.wasm";
// let PLAY = true;
// let PLAY = false;
init_game();
const canvas = document.getElementById("game-canvas");
const ctx = canvas.getContext('2d');