Skip to content

saurabhkhandare/falling-stars-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Catch the Falling Stars โญ๐ŸŒŸโœจ

A fun and creative browser game where you move a basket to catch as many falling stars as you can within 60 seconds!


๐ŸŽฎ Game Concept

Catch bright yellow stars falling from the sky by moving your basket left and right using the arrow keys. Each star you catch adds to your score. Missed stars vanish silently. Race against the clock and aim for the highest score!


๐Ÿš€ How to Play

  • Use โฌ…๏ธ Left Arrow and โžก๏ธ Right Arrow keys to move the basket horizontally.
  • Catch the falling stars โญ with your basket ๐Ÿงบ.
  • Each star caught = +1 point.
  • The game lasts 60 seconds โณ.
  • Try to beat your High Score ๐Ÿ†!

โœจ Features

  • Pure HTML, CSS & Vanilla JS โ€” no frameworks or libraries.
  • Beautiful 800x600 canvas with smooth animations.
  • Stylish yellow five-point stars and a warm brown basket.
  • Score displayed top-left with a shining star icon โญ.
  • High score displayed top-right with a trophy icon ๐Ÿ†.
  • Responsive keyboard controls.
  • Persistent high score saved in your browser.
  • Clean and creative UI with subtle shadows and glow effects.

๐Ÿ› ๏ธ Technical Details

  • Canvas Size: 800x600 pixels.
  • Basket: Brown rectangle (100x28 px) with a subtle border.
  • Stars: Yellow 5-point polygons with glow.
  • Star Speed: Constant falling speed.
  • Game Duration: 60 seconds.
  • Keyboard input via keydown and keyup events.
  • Modular, well-commented code with minimal globals.

๐Ÿ“ฆ How to Run

  1. Download or clone this repository:
  2. Open index.html in any modern web browser (Chrome, Firefox, Edge, Safari).
  3. Start playing immediately โ€” no setup required!

๐ŸŽจ Customization Tips

  • Change star color or shape by modifying the drawing function.
  • Adjust basket size or color in the CSS and JS constants.
  • Modify star spawn rate or speed in the JS constants.
  • Update game duration to make it longer or shorter.
  • Add sound effects or background music for extra immersion.

๐Ÿ… License

Free to use, modify, and share. Spread the joy of catching stars!


๐ŸŒ  Enjoy the game and may your basket always be full of stars! ๐ŸŒ 

About

A fun and creative browser game where you move a basket to catch as many falling stars as you can within 60 seconds!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages