How lifelandman/marinefpsdemo works
Marine FPS Demo is a Panda3D multiplayer FPS template. The principal workflow runs from the player’s menu into a host or client lobby, then starts a game world that loads a map and coordinates players, entities, HUD, audio, and game logic. Player movement and weapon behavior form a distinct gameplay branch; networking carries multiplayer messages between clients and the host. The README identifies the project as a template, but gives few behavioral details. Connections below are limited to sampled excerpts, SOURCE INDEX references, and explicit documentation.
Main entry points: game.py Game world · lobby.py Lobby UI · bulletBase.py Bullet weapons · playerEnts.py Player entities
Components 34
Menus and lobby
- Application entry
main.py - Main menu
code/main_menu.py - Options menu
code/options/option_menu.py - Option definitions
code/options/option_lists.py - Lobby UI
code/lobby.py
Multiplayer networking
- Client transport
code/servers/client.py - Host transport
code/servers/host.py - Message protocol
code/servers/commonMsg.py - Player tracking
code/netTracking.py
Game runtime
- Game world
code/game.py - World loading
code/worldLoader.py - Game modes
code/logic - HUD
code/hud.py - 3D audio
code/audio/audioTriggerGlobal.py - Sound registration
code/audio/subAudio.py - Random generation
code/rng.py
Entities and players
- Player manager
code/playerMgr.py - Entity manager
code/entities/entMgr.py - Entity base
code/entities/entBase.py - Node entities
code/entities/npEnt.py - Entity models
code/entities/entModels.py - World functions
code/entities/funcs.py - Player entities
code/entities/playerEnts.py - Player model
code/entities/playerModel.py - Networked players
code/entities/playerNet.py
Weapons and combat
- Weapon slots
code/weapons/wpnSlots.py - Weapon base
code/weapons/wpnBase.py - Ammo and reload
code/weapons/wpnAmmo.py - Weapon timing
code/weapons/wpnTrgr.py - Bullet weapons
code/weapons/bulletBase.py - Weapon set
code/weapons/as_wpns.py - Damage types
code/weapons/damageTypes.py - Impact decals
code/weapons/decalMgr.py
Other components
- Player
Connections 39
- Player → Application entry: launches
main.py - Application entry → Main menu: opens
main.py - Main menu → Lobby UI: opens
code/main_menu.py - Main menu → Options menu: opens
code/main_menu.py - Options menu → Option definitions: loads options
code/options/option_menu.py - Lobby UI → Client transport: creates client
code/lobby.py - Lobby UI → Host transport: creates host
code/lobby.py - Lobby UI → Player tracking: tracks players
code/lobby.py - Lobby UI → Game world: starts game
code/lobby.py - Client transport → Message protocol: uses protocol
code/servers/client.py - Host transport → Message protocol: uses protocol
code/servers/host.py - Game world → World loading: loads map
code/game.py - Game world → Game modes: initializes modes
code/game.py - Game world → HUD: initializes HUD
code/game.py - Game world → 3D audio: initializes audio
code/game.py - Game world → Player manager: creates manager
code/game.py - Game world → Entity manager: creates manager
code/game.py - Game world → Random generation: creates manager
code/game.py - Game world → Impact decals: creates manager
code/game.py - 3D audio → Sound registration: registers sounds
code/audio/audioTriggerGlobal.py - Player manager → Networked players: uses player classes
code/playerMgr.py - Entity manager → World functions: uses functions
code/entities/entMgr.py - Entity models → Node entities: uses node entities
code/entities/entModels.py - Entity models → World functions: uses functions
code/entities/entModels.py - Node entities → Entity base: extends
code/entities/npEnt.py - World functions → Node entities: extends entities
code/entities/funcs.py - Player model → Entity models: uses models
code/entities/playerModel.py - Networked players → Player entities: extends players
code/entities/playerNet.py - Player entities → Node entities: extends entities
code/entities/playerEnts.py - Player entities → Weapon slots: creates weapon manager
code/entities/playerEnts.py - Player entities → Weapon set: uses weapons
code/entities/playerEnts.py - Bullet weapons → Weapon slots: uses slot manager
code/weapons/bulletBase.py - Bullet weapons → Weapon timing: uses timing
code/weapons/bulletBase.py - Bullet weapons → Ammo and reload: uses ammo
code/weapons/bulletBase.py - Bullet weapons → Damage types: calculates damage
code/weapons/bulletBase.py - Ammo and reload → Weapon slots: uses slot manager
code/weapons/wpnAmmo.py - Ammo and reload → Weapon timing: extends timing
code/weapons/wpnAmmo.py - Weapon slots → Weapon base: extends weapon base
code/weapons/wpnSlots.py - Weapon set → Bullet weapons: defines weapons
code/weapons/as_wpns.py