Responsive dino game written in JavaScript and HTML5 Canvas
put your canvas ID in config.js file, default is 'jesus'
const CANVASID = 'YOUR_CANVAS_ID';
make a game object and start the game
let game = new Game(); // make new game object
// start the game
game.start().then((f) => {
console.log("the game assets has loaded successfuly with jesus christ help!");
return true;
} , (e) => {
console.log("the game failed to load assets " , e)
throw e;
})
Feel free to use and/or change the game logic as it has more stuff to do!