How hurwan0629/kdt-final-3-game-subject works
Space Skirmish is a Python/Pygame top-down space shooter with a headless reinforcement-learning environment. The player workflow runs from input and menu handling through frame-based game rules, combat, map interactions, and progression, then renders the updated state. The separate RL workflow advances the same game core and returns observations and rewards. README documents additional map, evolution, weapon, and minimap capabilities; unsampled internals are represented only where documented or indexed, so some links are omitted.
Main entry points: env.py Tank environment · main.py Game application · game_core.py Game rules · renderer.py Game renderer
Components 15
Game simulation
- Game application
main.py - Game rules
game_core.py - Game configuration
config.py
World and progression
- Map and terrain
terrain.py - Built-in maps
maps - Stats and ship evolution
progression.py
Player interface
- Menus and controls
menus.py - Game renderer
renderer.py - Sprite asset handling
sprite_assets.py - Game art assets
assets
RL environment
- Tank environment
env.py - Observation builder
env.py - Reward calculation
env.py
Other components
- Player
- RL agent
Connections 22
- Player → Game application: provides input
README.md - Game application → Game rules: updates game
main.py - Game application → Menus and controls: handles menus
main.py - Game application → Game renderer: draws state
main.py - Game application → Game configuration: configures
main.py - Game rules → Game configuration: reads settings
game_core.py - Game rules → Map and terrain: uses terrain
game_core.py - Game rules → Stats and ship evolution: uses ship definitions
game_core.py - Map and terrain → Built-in maps: loads maps
README.md - Game renderer → Map and terrain: renders terrain
renderer.py - Game renderer → Stats and ship evolution: uses ship definitions
renderer.py - Game renderer → Sprite asset handling: requests sprites
renderer.py - Sprite asset handling → Game configuration: resolves resources
sprite_assets.py - Sprite asset handling → Stats and ship evolution: reads barrel overrides
sprite_assets.py - Sprite asset handling → Game art assets: loads images
sprite_assets.py - RL agent → Tank environment: steps environment
README.md - Tank environment → Game rules: advances game
env.py - Tank environment → Observation builder: builds observations
env.py - Tank environment → Reward calculation: computes reward
env.py - Tank environment → Game configuration: uses settings
env.py - Observation builder → Map and terrain: encodes terrain
env.py - Tank environment → Game renderer: renders optionally
env.py