Skip to content

DecadeVinhLe/BunnyGame

Repository files navigation

🐰 Bunny Dodge Bomb

A clean-as-hell 2D Android game where you control a bunny to dodge falling bombs. Built in Java with solid OOP so you don’t cry maintaining it later.


📸 Preview

Bunny


🎯 Features

  • Touch-based player control
  • Randomly spawning bombs
  • Smooth custom game loop
  • Collision detection
  • Modular OOP codebase

🧱 Architecture

📁 com.example.bunnydodge
├── 🐇 Bunny.java           → Player logic and rendering
├── 💣 Bomb.java            → Falling bomb objects
├── 🎮 GameView.java        → Canvas + game logic
├── 🔁 GameLoopThread.java  → Handles update + draw cycle
└── 📱 MainActivity.java     → Entry point to start the game

🚀 Getting Started

✅ Prerequisites

  • Android Studio Hedgehog+ 🦔
  • Java 17+
  • Min SDK 23 or higher

🔧 Setup

git clone https://github.com/yourusername/bunny-dodge-bomb.git
cd bunny-dodge-bomb
open with Android Studio

Click Run ▶️. That’s it.


🛠️ Extend It

Want to level it up?

  • 🎯 Add score tracking
  • 💥 Add explosions and effects
  • 🧠 Add powers with polymorphism
  • 📉 Game over + retry logic

All easily pluggable thanks to OOP.


🧪 Code Stats

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                          8             117              120            1479
-------------------------------------------------------------------------------

No bloat, just code.


📄 License

MIT. Go nuts. Just don’t sell this as a shitty NFT.


👊 Credits

Built by [your name], fueled by caffeine and cursed energy.

"Write code like your future self has a shotgun."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages