Skip to content

About

Let the box move. Let the joy begin. 🕹️

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Mini Game

A mini snake-like game made with HTML, CSS, and JavaScript, built from scratch with love, logic, and late-night coding. 🧠💪💤

snake-demo


🚀 What’s this?

This is my very first game attempt, inspired by the classic Snake.
The logic is built using setInterval, keydown events, and collision detection with food items.
Each time the red square (a.k.a. the “snake”) eats a black square (the “food”), the score increases and a new food item appears randomly on the screen. 💥


🎮 Controls

Use your arrow keys to move the red box:
⬆️ ⬇️ ⬅️ ➡️


💡 Features

  • Smooth movement using setInterval
  • Dynamic food generation
  • Score counter 🧮
  • Responsive to window size
  • Minimal code, maximum fun 😎

🧠 Dev Notes

This project was created to practice:

  • DOM manipulation
  • Keyboard events
  • Timing functions
  • Random positioning logic
  • Game state management

And to be honest, I enjoyed building it more than playing it. 😁


🔗 Demo

👉 Play it here


🧸 Made with

Love, frustration, coffee, and late-night bugs.


⚙️ Future Plans

  • Add snake tail that grows with each food
  • Implement collision with walls
  • Add game over logic
  • Better UI & animations

About

Let the box move. Let the joy begin. 🕹️

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages