Basic JS Game - Part 2
- Copy the following starter code into the game.js file: game.js code
- The image below shows the code you need for the drawObject(), moveObject() and drawGame() fucntions
- The image below shows the code you need for the updateGame() fucntion
- call the function
startTheGame();
in your buttons.js in the function which is called when the start button is pressed. - call the function
endTheGame();
in your buttons.js in the function which is called when the end button is pressed.


At this stage the project looks like this.