A simple browser game where you control a bucket to catch falling stars. Try to catch as many stars as you can before the time runs out!
- Drag the bucket left or right using your mouse or touch to catch the falling stars.
- Each star caught increases your score by 1.
- The game lasts for 60 seconds.
- Try to beat your high score! High scores are saved in your browser's local storage.
- Responsive drag-and-drop bucket control (mouse and touch supported).
- Falling stars that appear randomly and move downward.
- Score and high score tracking with local storage persistence.
- Countdown timer with game over alert.
- Restart button appears when the game ends.
index.html— Main HTML file for the game layout.style.css— Stylesheet for game appearance and layout.script.js— JavaScript code handling game logic and interactions.
- Download all the files (
index.html,style.css, andscript.js) into the same folder. - Open
index.htmlin a modern web browser (Chrome, Firefox, Edge, Safari). - The game will start automatically. Use your mouse or finger to drag the bucket and catch stars.
- Adjust star falling speed by changing the value in
updateStars()(currentlytop += 4;). - Change game duration by modifying the
timevariable inscript.js. - Customize bucket or star styles via
style.css.
This project is open-source and free to use for personal or educational purposes.
Enjoy catching the stars!