Skip to content

whosfatima/Snake_Mini_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published