How kraibse/scavanger works
Main Components
a) Core Game Engine Components:
• Scene Management System (scene_manager.py)
• Game Loop Controller (start_scavanger.py)
• Global State Management (globals.py)
b) Game Object Components:
• Player System (player.py)
• Environment Objects
• Planets (planet.py)
• Asteroids (asteroids.py)
• Enemy Turrets (enemy_turret.py)
• Resource System (scavengeable.py)
• Projectile System (projectile.py)
c) UI Components:
• Main Menu (main_menu.py)
• Shop System (shop.py)
• Health Bar (health_bar.py)
• Button System (button.py, button_event.py)
• Text Display (text_box.py)
• Game End Scene (game_end_scene.py)
[Game Entry Point]
• [Scene Manager]─────────────────────┐
• [Main Menu Scene] │
• [Game Scene] │
• [Game End Scene] │
• [Game Objects]───────────┐ │
• [Player] │ │
• [Planets] │ │
• [Asteroids] │ │
• [Enemy Turrets] │ │
• [Projectiles] │ │
• [UI System]─────────────┘ │
• [Shop] │
• [Health Bar] │
• [Buttons] │
• [Asset Management]─────────────────┘
Important Relationships to Highlight
• Scene Manager's control flow between different game states
• Player interaction with environment objects (planets, asteroids)
• Enemy turret targeting system with the player
• UI elements' communication with game state
• Resource collection and shop system interaction
Technical Details
• Pygame as the underlying game engine
• Asset loading system for sprites and animations
• Event handling system for player input
• Collision detection system
• Resource management system
Implementation Notes
• Use clear, descriptive labels for all components
• Brief notes about key gameplay mechanics
• Data flow between major systems