How kwoneunwoo/air-battle works
Air Battle is a Pygame arcade shooter. The player starts a run, optionally changes settings, steers a fighter and fires at an incoming missile, then sees score, playtime, and accuracy on the ending screen and can restart. The sampled code shows the main loop dispatching screens and passing run results; screens use shared image/button primitives and configuration. The README documents controls and settings; major source excerpts are available for the central loop, gameplay, start, settings, ending, and image/button helpers.
Main entry points: setting.py Settings screen · main.py Application loop · game.py Gameplay · start.py Start screen
Components 13
Game flow
- Application loop
main.py - Ending screen
screens/ending.py
Arcade gameplay
- Gameplay
screens/game.py
Screens and settings
- Start screen
screens/start.py - Settings screen
screens/setting.py
Shared runtime
- Game configuration
config.py - Image rendering
objects/image.py - Image button
objects/image_button.py - Toggle control
objects/toggle_button.py - Numeric control
objects/int_button.py
Other components
- Player
- Pygame runtime
- Web browser
Connections 23
- Player → Start screen: starts or configures
README.md - Application loop → Start screen: runs
main.py - Application loop → Settings screen: runs on request
main.py - Application loop → Gameplay: runs
main.py - Application loop → Ending screen: runs with results
main.py - Start screen → Player: accepts controls
README.md - Start screen → Web browser: opens project link
screens/start.py - Settings screen → Player: applies settings
README.md - Settings screen → Game configuration: updates values
screens/setting.py - Settings screen → Image button: uses
screens/setting.py - Settings screen → Toggle control: uses
screens/setting.py - Settings screen → Numeric control: uses
screens/setting.py - Gameplay → Game configuration: reads settings
screens/game.py - Gameplay → Image rendering: renders game assets
screens/game.py - Gameplay → Ending screen: supplies run results
- Ending screen → Player: offers restart or exit
README.md - Start screen → Image button: uses
screens/start.py - Image button → Image rendering: inherits rendering
objects/image_button.py - Image rendering → Pygame runtime: loads and draws images
objects/image.py - Application loop → Pygame runtime: initializes runtime
main.py - Settings screen → Pygame runtime: handles events and audio
screens/setting.py - Gameplay → Pygame runtime: handles gameplay events
screens/game.py - Ending screen → Pygame runtime: handles ending events
screens/ending.py