Skip to content

Instantly share code, notes, and snippets.

@jake0326
jake0326 / README.md
Created April 15, 2021 14:32 — forked from straker/README.md
Basic Snake HTML Game

Basic Snake HTML Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

image

Further Exploration

  • Score
  • When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen
@jake0326
jake0326 / README.md
Created April 15, 2021 14:12 — forked from straker/README.md
Basic Breakout HTML Game

Basic Breakout HTML Game

This is a basic implementation of the Atari Breakout game, but it's missing a few things intentionally and they're left as further exploration for the reader.

image

Further Exploration

  • Lives
  • The player should have 3 chances to remove all the bricks. Display how many lives the player currently has using context.fillText(). Remove a life when the ball goes below the screen