2D Snake Game.
To start the file, simply open the index.html file with your browser.
The game was developed using JavaScript, CSS, and HTML.
The game is controlled using the arrow keys on the keyboard.
For every x apples eaten, a golden apple is spawned in the game.
Each golden apple provides a random bonus between 0 and 10 points.
For every x golden apples eaten, an extra life is added.
The extra life prevents the game from ending when the snake collides with itself.
For every x apples eaten, a diamond apple is spawned.
When a diamond apple is eaten, the snake's length is randomly reduced while maintaining the game score.
The highest score achieved becomes the new record.
09uno / 2d-snake-game Goto Github PK
View Code? Open in Web Editor NEWjogo da cobrinha 2d