π± Cute Cat Runner β Project Story
π― Inspiration
Iβve always enjoyed the Google Chrome Dino Game, especially how simple yet addictive it is.
One day, I thought β what if we recreated it, but made it more colorful, fun, and cute?
Thatβs how KittyJump was born β replacing the dinosaur with an adorable cat πΎ and adding cheerful obstacles like bushes πΏ, mushrooms π, and flowers πΈ.
π What I Learned
- HTML, CSS, and JavaScript Game Development basics.
- How to implement character movement and jumping mechanics.
- Using
getBoundingClientRect()for accurate collision detection. - Managing random obstacle generation for unpredictable gameplay.
- Local storage for high score tracking.
- Creating interactive UI elements like the Slow/Fast speed toggle.
π How I Built It
- HTML β Structured the game container, cat character, score display, and control buttons.
- CSS β Designed a clean, minimalist look while keeping obstacles colorful and cute.
- JavaScript β
- Implemented jump physics for the cat.
- Generated random obstacles at varying distances.
- Added collision detection and game over logic.
- Kept track of scores and high scores using
localStorage. - Created a speed toggle for Slow π’ and Fast π modes.
- It wouldn't have been possible without ChatGPT's help.
β‘ Challenges I Faced
- Getting the cat to jump smoothly without glitches.
- Aligning obstacles so they all sit perfectly on the ground.
- Preventing false collision detection when obstacles have different heights.
- Making sure obstacle spacing felt natural and random instead of predictable.
- Balancing visual cuteness with the minimalist style.
π The Fun Factor
This project reminded me how small tweaks in design can completely change the mood of a game.
Adding flowers, mushrooms, and pastel colors transformed a plain survival game into something cheerful and lively.
The result is a game that feels both relaxing and challenging β perfect for a quick break.
Built with β€οΈ using HTML, CSS, and JavaScript.
Built With
- chatgpt
- css3
- html5
- javascript
- vscode
Log in or sign up for Devpost to join the conversation.