Skip to content

Repository files navigation

🐍 React Snake Game

A modern Snake game built with React, TypeScript, and Vite. Features Game Boy-inspired design with custom snake artwork.

🚀 Quick Start

git clone https://github.com/yourusername/react-snake.git
cd react-snake
npm install
npm run dev

Open http://localhost:5173 to play!

🎮 How to Play

  • Arrow Keys: Move the snake
  • Spacebar: Pause/Resume
  • Click: Pause/Resume
  • Goal: Eat fruit to grow and score points

🛠️ Development

npm run dev     # Development server
npm run build   # Production build
npm run lint    # Run linter

🎨 Tech Stack

  • React 19.1.1
  • TypeScript 5.9.3
  • Vite 7.1.7
  • Tailwind CSS 4.1.16

📱 Features

  • Responsive design
  • Touch controls
  • Score tracking
  • Smooth animations
  • Custom snake artwork

Made with ❤️ and React

About

Snake Game in React + Typescript

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages