1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Snake/sources/js/index.js

9 lines
211 B
JavaScript
Raw Normal View History

2021-03-18 10:29:12 +01:00
import { Game } from "./Game.js"
2021-03-11 09:39:52 +01:00
2021-03-18 10:29:12 +01:00
const game = new Game(document.getElementById("canvas"), {snakeSpeed: 200});
2021-03-11 09:39:52 +01:00
document.addEventListener('DOMContentLoaded', function() {
M.AutoInit();
2021-03-18 10:29:12 +01:00
game.start();
2021-03-11 09:39:52 +01:00
});