A 2D grid-based desktop game developed in Java. The player controls Yogi Bear navigating through Yellowstone National Park, collecting picnic baskets while avoiding patrolling rangers.
- Language: Java 25
- GUI Framework: Java Swing / AWT
- Build Tool: Maven
- Database: Apache Derby
- Testing: JUnit 5
- Custom Game Engine: Built from scratch using
javax.swing.Timerfor a consistent 60 fps game loop. - Patrolling AI: Rangers follow set paths and detect Yogi using a proximity-based system.
- Persistent Leaderboard: Embedded Apache Derby database that automatically initializes and stores high scores.
- 10 Custom Levels: Increasingly difficult maps with different layouts.
- Download the latest
yogi-bear-1.0.0-release.zipfrom the Releases section. - Unzip the file.
- Run the game by double-clicking the JAR or using:
java -jar yogi-bear-1.0.0.jarNote: Ensure the data/ folder stays in the same directory as the JAR file.
If you want to compile the project yourself:
- Clone the repository.
- Build the "Fat JAR" using Maven:
mvn clean package- Find the executable in the
target/directory.
- W, A, S, D: Move Yogi Bear
- ESC: Pause / Resume game