lserafin / snake-game-in-typescript

Pixel Art Snake

Home Page:https://luzianserafin.com/snake-game-in-typescript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŽฎ Pixel Art Snake Game with TypeScript

Dive into the nostalgia of classic games with this pixel-art inspired Snake game. Crafted meticulously with TypeScript and HTML canvas, this game offers a blend of the classic gameplay you love with modern coding practices.

๐Ÿ•น๏ธ Try it out: Play Snake Game

๐ŸŒŸ Features

  • ๐Ÿ Engaging Classic Snake gameplay.
  • ๐ŸŽฒ Random starting direction โ€“ just hit Space.
  • ๐ŸŽจ Beautiful Pixel art aesthetics.
  • ๐Ÿ† Score tracking - beat your own high score!

๐ŸŽฎ How to Play

  1. ๐Ÿ Start by using the arrow keys to steer the snake.
  2. ๐Ÿ” Consume the turquoise treats and watch your snake grow.
  3. โŒ Stay away from the canvas boundaries and don't bite yourself.
  4. ๐Ÿ”€ Want a surprise? Press Space to begin with a random direction.
  5. ๐Ÿ“Š Keep an eye on the top-left corner, that's where your score is displayed.

๐Ÿ”ง Setup & Running the Game

Want to see the source or tweak the game? Dive into the code!

Clone this Repo or edit directly on StackBlitz!

๐Ÿ”— Edit on StackBlitz โšก๏ธ

About

Pixel Art Snake

https://luzianserafin.com/snake-game-in-typescript/


Languages

Language:TypeScript 72.6%Language:CSS 14.2%Language:HTML 11.1%Language:JavaScript 2.1%