Skip to content

nelson-pechmay/simple_snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_snake

This repository aims to host a simple version of the classical snake game in 2D. You can control de motion of the snake using the arrow key on your keyboard.

How to play it?

You can load the game on the browser here: https://nelson-pechmay.github.io/simple_snake/

  1. Press an arrow key to start the game.
  2. Play the game and when the snake collide with a wall or itself it will trigger the game-over screen.
  3. Click the "Restart" button.
  4. The canvas should immediately display the snake and food in their initial positions, and the game-over screen should disappear.
  5. Press an arrow key to start the new game.

Here are some screenshots of the game:

Screen test 01 Screen test 02

About

This repository aims to host a simple version of the classical snake game in 2D.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors