How adityamalu/spacewarrior works
SpaceWarrior is a LÖVE game where two local players battle in a physics-driven arena using lasers, bombs, and scatter shots. The documented user workflow starts the game, then players control their ships in combat; the repository separates game states from gameplay modules. The README names the entry point and broad structure but no source excerpts were provided, so internal links are dashed where their exact call relationships are unverified.
Main entry points: PlayState.lua Play State · states Game States · main.lua Game Entry · StateMachine.lua State Machine
Components 15
Game Runtime
- Game Entry
main.lua - State Machine
StateMachine.lua
Game States
- Game States
states - Play State
states/PlayState.lua - Network Client
states/NetClientState.lua
Combat Systems
- Player Ships
modules/Player.lua - Weapons
modules/bullets.lua - Physics
modules/physics.lua - Powerups
modules/powerups.lua - Power Supply
modules/powersuplier.lua
Game Support
- Arena Maps
modules/maps.lua - Audio
modules/audio.lua - Settings
modules/settings.lua - Network
modules/net.lua
Other components
- Local Players
Connections 14
- Local Players → Game Entry: start game
README.md - Game Entry → State Machine: uses states
- State Machine → Game States: manages
- Game States → Play State: includes
README.md - Play State → Player Ships: runs combat
- Play State → Weapons: uses weapons
- Play State → Physics: uses physics
- Play State → Powerups: uses powerups
- Play State → Power Supply: uses supplies
- Play State → Arena Maps: uses arenas
- Play State → Audio: plays audio
- Game States → Settings: includes settings
README.md - Game States → Network Client: includes client
- Network Client → Network: uses network