How harry-1391453181620-developer-group/jungle works
Jungle is a Swing arcade game: the player starts a run, moves and jumps to avoid ground bananas and monkey-thrown projectiles, accumulates score while protecting hearts, and reaches a game-over screen with restart and a persisted high score. The graph follows the sampled startup, panel, entity, and resource-loading calls. It also shows the collision, rendering, and score-storage responsibilities in the game panel; no README capabilities are available, and the listed resources do not include all image paths referenced by constants.
Main entry points: GamePanel.java Game loop and UI · ResourceLoader.java Resource loader · GameConstants.java Game settings · Player.java Player character
Components 13
Application shell
- Startup
jungle/src/Main.java - Game window
jungle/src/GameFrame.java
Game runtime
- Game loop and UI
jungle/src/GamePanel.java - Collision and scoring
jungle/src/GamePanel.java - High-score file
highest_score.txt
Game entities
- Player character
jungle/src/entity/Player.java - Ground banana
jungle/src/entity/Banana.java - Monkey
jungle/src/entity/Monkey.java - Thrown banana
jungle/src/entity/MonkeyBanana.java
Runtime support
- Game settings
jungle/src/constants/GameConstants.java - Resource loader
jungle/src/util/ResourceLoader.java - Local assets
jungle/resources
Other components
- Player
Connections 29
- Player → Startup: launches
jungle/src/Main.java - Startup → Game window: creates
jungle/src/Main.java - Game window → Game loop and UI: creates
jungle/src/GameFrame.java - Game window → Game loop and UI: starts run
jungle/src/GameFrame.java - Game loop and UI → Player character: creates
jungle/src/GamePanel.java - Game loop and UI → Ground banana: creates
jungle/src/GamePanel.java - Game loop and UI → Monkey: creates
jungle/src/GamePanel.java - Game loop and UI → Thrown banana: fires
jungle/src/GamePanel.java - Game loop and UI → Player character: updates
jungle/src/GamePanel.java - Game loop and UI → Ground banana: updates
jungle/src/GamePanel.java - Game loop and UI → Monkey: updates
jungle/src/GamePanel.java - Game loop and UI → Thrown banana: updates
jungle/src/GamePanel.java - Game loop and UI → Collision and scoring: checks hits
jungle/src/GamePanel.java - Collision and scoring → Player character: changes hearts
jungle/src/GamePanel.java - Collision and scoring → Ground banana: marks hit
jungle/src/GamePanel.java - Collision and scoring → Thrown banana: marks hit
jungle/src/GamePanel.java - Game loop and UI → High-score file: reads and writes
jungle/src/GamePanel.java - Game loop and UI → Resource loader: loads assets
jungle/src/GamePanel.java - Player character → Resource loader: loads image
jungle/src/entity/Player.java - Ground banana → Resource loader: loads image
jungle/src/entity/Banana.java - Monkey → Resource loader: loads image
jungle/src/entity/Monkey.java - Thrown banana → Resource loader: loads image
jungle/src/entity/MonkeyBanana.java - Resource loader → Local assets: opens assets
- Game loop and UI → Game settings: uses settings
jungle/src/GamePanel.java - Game window → Game settings: uses dimensions
jungle/src/GameFrame.java - Player character → Game settings: uses settings
jungle/src/entity/Player.java - Ground banana → Game settings: uses settings
jungle/src/entity/Banana.java - Monkey → Game settings: uses settings
jungle/src/entity/Monkey.java - Thrown banana → Game settings: uses settings
jungle/src/entity/MonkeyBanana.java