How maciejszybiak/q2unity works
q2unity is a Unity game project that recreates Quake II movement on BSP maps. The documented user workflow is to configure the Quake II game and mod folders, start the game, select a map, and play. Its main runtime domains are resource/map loading, BSP-based world rendering and collision, player movement, and a limited set of entities. The tree supports these subsystem boundaries, but no source excerpts were available, so internal call wiring is omitted where the README does not establish it.
Main entry points: ResourceLoader.cs Resource Loading · PlayerMove.cs Movement Physics · Loader.cs Map Loading · MenuManager.cs Menu Flow
Components 20
Game Setup
- Folder Settings
Assets/Scripts/Menu/MapPanel.cs - Menu Flow
Assets/Scripts/Menu/MenuManager.cs
Map Runtime
- Resource Loading
Assets/Scripts/System/ResourceManagement/ResourceLoader.cs - PAK Access
Assets/Scripts/System/ResourceManagement/PakFile.cs - Map Loading
Assets/Scripts/System/Loading/Loader.cs - BSP Parsing
Assets/Scripts/BSPFile/BSPFile.cs - Texture Loading
Assets/Scripts/TextureManagement/TextureLoader.cs - Lightmap Data
Assets/Scripts/TextureManagement/LightmapAtlas.cs
Gameplay
- Movement Physics
Assets/Scripts/Physics/PlayerMove.cs - Movement Core
Assets/Scripts/Physics/Pmove.cs - Trace Queries
Assets/Scripts/Physics/Trace.cs - Entity Runtime
Assets/Scripts/Entities/EntitySpawn.cs - Entity Events
Assets/Scripts/Entities/EntityThink.cs - Weapons
Assets/Scripts/Game/Weapon.cs - Projectiles
Assets/Scripts/Game/Projectile.cs
Game Services
- Configuration
Assets/Scripts/System/Configuration/ConfigManager.cs - Console Commands
Assets/Scripts/System/Console/CommandManager.cs - Audio
Assets/Scripts/System/AudioManager.cs
Other components
- Player
- Quake II Files
Connections 12
- Player → Folder Settings: configures folders
- Player → Menu Flow: starts and selects
- Menu Flow → Map Loading: selects map
- Quake II Files → Resource Loading: provides files
- Resource Loading → PAK Access: reads archives
- Resource Loading → Map Loading: supplies assets
- Map Loading → BSP Parsing: loads BSP
- Player → Movement Physics: moves in game
- Movement Physics → Movement Core: runs movement
- Movement Physics → Trace Queries: queries collision
- Weapons → Projectiles: fires
- Entity Runtime → Entity Events: updates entities