Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.07 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.07 KB

SnakesAreSpreading

  1. Give your game a name via an HTML element ex: (

    My Awesome Game Name

    )

  2. Add a game surface ("canvas") for your snake to spread ex:()

  3. Give your snake some styling. Locate the spot in the index.html file where the "insert the style sheet" is and add in the following

  1. Below the div containing the canvas, draft the instructions on how to play your game

  2. Insert the script which controls your snake. Locate the spot in the index.html file where the "insert the javascript" is and add in the following

<script type="text/javascript" src="game.js"></script>
  1. Add a instructions for the user on how to start the game. (Hint - Line 23)

  2. Keys Find the variable 'keys' on line 165, this is what helps control your snake. Utilizing the website http://keycode.info/ insert the key that will start your game in the start_game array. (ex: start_game: [13, 32])

  3. Repeat the same concept in step 7, but for the arrays left, right, up, down.