Skip to content

cookieukw/Advanced-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced-Snake-Game

A game made in html using Canvas. This code was initially based on another code, I would like to thank Steven Lambert therefore.

This version has the following improvements:

  • The snake doesn't die when colliding with itself

  • Now snake adjusts itself to grid, block and canvas size. It spawns on the other side regardless of canvas or block size

  • There is another apple that spawns, if the snake eats it, it shrinks in size

  • Mobile controls

  • The snake is colored(the head has a unique color)

  • The snake spawns at a random location and in a random direction

  • Point count

  • Better organization of codes and variables


sample

note: translator's english


Open Source

Copyright © 2022 CookieUkw.

MIT license