How esizzle/2dversealpha works
2dverse is a real-time 2D cell-evolution game. The player interacts through the game loop, which accepts input, updates the world and cells, and renders the world and HUD; cells gain or lose resources, mutate, move, and divide. The graph also preserves environmental simulation, multicellular behavior, plant defense, audio, settings, and mutation history. Main-loop orchestration is clear from the excerpts and source index; some internal call details are unsampled, so only supported relationships are drawn.
Main entry points: main.py Game loop · cell.py Cells and genomes · world_grid.py World grid · colors.py Color palette
Components 19
Game runtime
- Game loop
main.py - Camera
camera.py - Audio manager
audio.py - Resource paths
resources.py - Simulation clock
sim_clock.py - Runtime profiler
profiler.py
World simulation
- World grid
world_grid.py - Environment features
env_features.py - Physics objects
physics_object.py - Simulation tuning
global_constants.py
Cell biology
- Cells and genomes
cell.py - Decision models
decision_models.py - Multicellular links
multicell.py - Plant defense
plant_defense.py
Player interface
- Player control
player.py - Settings panel
settings.py - Mutation journal
journal.py - Color palette
colors.py
Other components
- Player
Connections 25
- Player → Game loop: plays
main.py - Game loop → World grid: updates and draws
main.py - Game loop → Camera: uses
main.py - Game loop → Player control: routes input
main.py - Game loop → Settings panel: configures
main.py - Game loop → Mutation journal: records mutations
main.py - Game loop → Audio manager: uses
main.py - Game loop → Simulation clock: uses
main.py - Game loop → Runtime profiler: uses
main.py - Game loop → Plant defense: uses
main.py - Audio manager → Resource paths: loads assets
audio.py - Player control → Cells and genomes: controls
player.py - Cells and genomes → World grid: queries environment
cell.py - Cells and genomes → Decision models: uses
cell.py - Cells and genomes → Multicellular links: manages links
cell.py - Cells and genomes → Physics objects: creates bodies
cell.py - World grid → Physics objects: creates colliders
world_grid.py - World grid → Environment features: builds snapshots
world_grid.py - World grid → Color palette: uses
world_grid.py - Decision models → World grid: queries
decision_models.py - Multicellular links → Simulation tuning: uses tuning
multicell.py - Plant defense → Simulation tuning: uses tuning
plant_defense.py - Mutation journal → Color palette: renders with
journal.py - Settings panel → Color palette: renders with
settings.py - Cells and genomes → Color palette: uses
cell.py