8 lines
211 B
JavaScript
8 lines
211 B
JavaScript
import { Game } from "./Game.js"
|
|
|
|
const game = new Game(document.getElementById("canvas"), {snakeSpeed: 200});
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
M.AutoInit();
|
|
game.start();
|
|
});
|