Bag Of Cows

Basic JS Game - Part 2

  1. Copy the following starter code into the game.js file: game.js code
  2. The image below shows the code you need for the drawObject(), moveObject() and drawGame() fucntions
  3. The image below shows the code you need for the updateGame() fucntion
  4. call the function
    startTheGame();
    in your buttons.js in the function which is called when the start button is pressed.
  5. 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.

Part 3