How paxy484/vernichtung works
Vernichtung is a portable C/SDL2 2.5D game engine rebuilding classic Doom-style gameplay and rendering while removing several legacy limits. Its principal flow is launching with IWAD/PWAD assets, loading map and visual resources, then running gameplay updates and BSP rendering; music is a parallel asset-to-audio path with MUS-to-MIDI translation and optional FluidSynth. The sampled excerpts show archive queries from rendering and module hooks in the main entry point, but do not expose the full loop calls, so uncertain wiring is marked dashed or omitted.
Main entry points: main.c Engine Loop · i_music.c Music Subsystem · u_archive.c WAD Archive Loading · untergangtype.h Runtime Types
Components 16
Engine Runtime
- Engine Loop
src/main.c - Runtime Types
include/untergangtype.h - Game Constants
include/untergangdef.h - Player Physics
src/p_physics.c
World and Rendering
- BSP Renderer
src/r_main.c
Assets and Audio
- WAD Archive Loading
src/u_archive.c - Music Subsystem
src/i_music.c - MUS to MIDI
src/mus2mid.c - Music API
include/i_music.h - Translator API
include/mus2mid.h
Platform I/O
- Input Handling
src/i_input.c - Framebuffer and Title
src/i_video.c
Other components
- Player
- IWAD / PWAD Files
- SDL2
- FluidSynth
Connections 23
- Player → Engine Loop: launches
README.adoc - Engine Loop → IWAD / PWAD Files: loads archives
src/main.c - Engine Loop → WAD Archive Loading: invokes loaders
- Engine Loop → Input Handling: dispatches input
- Engine Loop → Player Physics: updates movement
- Engine Loop → BSP Renderer: requests rendering
- Engine Loop → Music Subsystem: starts music
- Engine Loop → Framebuffer and Title: uses display
- BSP Renderer → WAD Archive Loading: fetches textures
src/r_main.c - WAD Archive Loading → IWAD / PWAD Files: reads lumps
src/u_archive.c - Framebuffer and Title → IWAD / PWAD Files: reads title lump
src/i_video.c - WAD Archive Loading → Framebuffer and Title: fills palette
src/u_archive.c - Music Subsystem → MUS to MIDI: translates music
README.adoc - Music Subsystem → FluidSynth: loads dynamically
- Music Subsystem → SDL2: opens audio
src/i_music.c - Engine Loop → SDL2: runs platform
README.adoc - Input Handling → Runtime Types: uses state
src/i_input.c - Player Physics → Runtime Types: uses world state
src/p_physics.c - BSP Renderer → Runtime Types: reads geometry
src/r_main.c - WAD Archive Loading → Runtime Types: populates assets
src/u_archive.c - Runtime Types → Game Constants: includes constants
include/untergangtype.h - Music Subsystem → Music API: implements API
src/i_music.c - MUS to MIDI → Translator API: implements API
src/mus2mid.c