How jung-ji-min/basegames works
BaseGames is a single-player 2D survival-and-choice game prototype. The player moves through deterministic terrain, finds objects, chooses actions that change resources and personal attributes, and reviews a journal of recorded events. The main loop handles input and timing; World owns simulation, interaction, and drawing, while Renderer batches the graphics. Persistence, combat, and AI dialogue are explicitly not implemented. The map follows the shown calls; terrain generation and drawing are grouped from World.cpp, and no unsampled shader-loading links are asserted.
Main entry points: SimpleGame.cpp Game Loop · Renderer.cpp Renderer · World.cpp Movement & Camera · WorldInteraction.cpp Object Actions
Components 12
Game Runtime
- Game Loop
SimpleGame/SimpleGame.cpp - Window Framework
SimpleGame/Dependencies/freeglut.h
World Simulation
- Terrain & Chunks
SimpleGame/World.cpp - Movement & Camera
SimpleGame/World.cpp
Player Experience
- Object Actions
SimpleGame/WorldInteraction.cpp - Player State
SimpleGame/PlayerState.h - Life Journal
SimpleGame/WorldInteraction.cpp
Graphics
- World Drawing
SimpleGame/World.cpp - Game UI
SimpleGame/WorldInteraction.cpp - Renderer
SimpleGame/Renderer.cpp - GL Shaders
SimpleGame/Shaders
Other components
- Player
Connections 14
- Player → Game Loop: provides input
SimpleGame/SimpleGame.cpp - Game Loop → Window Framework: registers callbacks
SimpleGame/SimpleGame.cpp - Game Loop → Movement & Camera: updates
SimpleGame/SimpleGame.cpp - Game Loop → Object Actions: dispatches actions
SimpleGame/SimpleGame.cpp - Game Loop → World Drawing: requests drawing
SimpleGame/SimpleGame.cpp - Game Loop → Renderer: manages frames
SimpleGame/SimpleGame.cpp - Movement & Camera → Terrain & Chunks: loads nearby chunks
SimpleGame/World.cpp - Movement & Camera → Player State: updates stamina
SimpleGame/World.cpp - Object Actions → Player State: updates attributes
SimpleGame/WorldInteraction.cpp - Object Actions → Life Journal: records choices
SimpleGame/WorldInteraction.cpp - World Drawing → Renderer: draws world
SimpleGame/World.cpp - World Drawing → Game UI: draws interface
SimpleGame/World.cpp - Game UI → Renderer: draws panels
SimpleGame/WorldInteraction.cpp - Renderer → GL Shaders