Save The Bunny is a simple and fun Android game where you control a bunny and help it jump over obstacles to score points. The game is built using Java and Android SDK, following modern Android development practices.
- Features
- Screenshots
- Getting Started
- Project Structure
- Gameplay
- Build & Run
- Testing
- Dependencies
- Contributing
- License
- Simple tap-to-jump gameplay
- Score tracking
- Game over and restart functionality
- Clean and minimal UI
- Responsive animations
- Written in Java using AndroidX libraries
- Android Studio (recommended)
- Android SDK (API Level 24+)
- Java 11
- Clone the repository:
git clone <your-repo-url> cd SaveTheBunny
- Open in Android Studio:
- Select
Open an existing project - Choose the
SaveTheBunnydirectory
- Select
- Build the project:
- Let Gradle sync and download dependencies
- Run the app:
- Connect an Android device or start an emulator
- Click the Run button in Android Studio.
SaveTheBunny/
├── app/
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/com/example/savethebunny/
│ │ │ │ └── MainActivity.java
│ │ │ ├── res/
│ │ │ │ ├── layout/activity_main.xml
│ │ │ │ ├── drawable/ic_bunny.xml, ic_obstacle.xml, ...
│ │ │ │ └── values/strings.xml
│ │ │ └── AndroidManifest.xml
│ │ ├── test/
│ │ │ └── java/com/example/savethebunny/ExampleUnitTest.java
│ │ └── androidTest/
│ │ └── java/com/example/savethebunny/ExampleInstrumentedTest.java
│ ├── build.gradle.kts
│ └── proguard-rules.pro
├── build.gradle.kts
├── settings.gradle.kts
└── gradle.properties
- Tap anywhere in the game area to make the bunny jump.
- Avoid colliding with obstacles that move from right to left.
- Each time you successfully avoid an obstacle, your score increases.
- If the bunny collides with an obstacle, the game ends and you can restart.
- The project uses Gradle for build automation.
- Minimum SDK: 24 (Android 7.0)
- Target SDK: 35
- Java Version: 11
To build and run:
- Use Android Studio's built-in tools, or run:
./gradlew assembleDebug
- Unit Tests: Located in
app/src/test/java/com/example/savethebunny/ExampleUnitTest.java - Instrumentation Tests: Located in
app/src/androidTest/java/com/example/savethebunny/ExampleInstrumentedTest.java - Run tests using Android Studio's test runner or via command line:
./gradlew test ./gradlew connectedAndroidTest
- AndroidX AppCompat
- Material Components
- ConstraintLayout
- JUnit (for unit testing)
- Espresso (for UI testing)
All dependencies are managed via Gradle and defined in
build.gradle.kts.

