You've played this game before. You know how it goes.
- Use the arrow keys (desktop) or swipe / D-pad (mobile) to control the snake
- Eat apples to grow longer
- Choose your difficulty: Easy, Medium, or Hard
- You get 3 lives per game
- Submit your score to the online leaderboard
- The game ends if you:
- Hit the wall
- Run into yourself
- Web (primary): Next.js, React, HTML5 Canvas, Web Audio API, Supabase — hosted at zoopbyte.com/snakeit
- Desktop (legacy): Java 17, Swing GUI, Maven
This repo contains the Java desktop version. The web version lives in the zoopbyte repo.
SnakeIt/
├── pom.xml
├── README.md
└── src/
└── main/
├── java/org/snakeIt/
│ ├── Audio.java
│ ├── GameFrame.java
│ ├── GamePanel.java
│ └── SnakeGame.java
└── resources/
Visit zoopbyte.com/snakeit to play in your browser — works on desktop and mobile. Features 8-bit chiptune audio, online leaderboard, and arcade-style attract screen.
The web version is served through the zoopbyte Next.js app. To test locally:
cd zoopbyte
npm install
npm run devThen open http://localhost:3000/snakeit
Build and run with Maven:
mvn clean package
java -jar target/SnakeIt-1.0-SNAPSHOT.jarOr open in IntelliJ IDEA / Eclipse as a Maven project and run SnakeGame.java.
| Input | Action |
|---|---|
| ↑ ↓ ← → | Move (desktop) |
| Swipe / D-pad | Move (mobile) |
| Space / Tap | Start game |
- Bro Code – Adapted from the Snake Game tutorial
- Stack Overflow – Java Swing grid rendering
Feel free to fork, experiment, and improve the project. Pull requests and suggestions are most welcome.
Creative Commons: © Ricki Angel 2026 | TechAngelX
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
This project is for personal or educational use only and comes without any warranty.
Built by Ricki Angel • Tech Angel X




