How sudivj/rainworld-clone-test works
This is a small SDL2 Rain World clone test. The visible workflow is SDL startup, then the game loop, where rooms and creatures can be updated and rendered. Creature setup reads YAML configuration, builds linked body parts, and derives smoothed polygon vertices for drawing. The graph includes the sampled runtime modules and their evidenced relationships; README and excerpts do not establish a fuller game loop, input flow, or room/creature orchestration, so those links are omitted.
Main entry points: creature.cpp Creature model · main.cpp SDL startup · game.cpp Game entry · node.cpp Position nodes
Components 14
Application entry
- SDL startup
main.cpp
Game simulation
- Game entry
src/game.cpp - Room tiles
src/room/room.cpp - Tile rendering
src/room/tile.cpp
Creature model
- Creature model
src/creature.cpp - Creature YAML
include/creatures/data.yml - Body parts
src/body/bodypart.cpp
Geometry and rendering
- Position nodes
src/node.cpp - Math functions
src/math_functions.cpp - Curve smoothing
src/curves/curves.cpp - Render utilities
src/utils.cpp - Color constants
include/colors.hpp
Other components
- Player
- SDL window
Connections 15
- Player → SDL startup: starts
main.cpp - SDL startup → SDL window: creates window
main.cpp - SDL startup → Game entry: calls
main.cpp - Game entry → Room tiles
- Game entry → Creature model
- Creature model → Creature YAML: reads config
src/creature.cpp - Creature model → Body parts: creates parts
src/creature.cpp - Creature model → Math functions: uses direction
src/creature.cpp - Creature model → Curve smoothing: smooths vertices
src/creature.cpp - Creature model → Render utilities: fills polygon
src/creature.cpp - Body parts → Position nodes: inherits
- Room tiles → Tile rendering: draws tiles
src/room/room.cpp - Tile rendering → Color constants: uses colors
- Position nodes → Color constants: uses colors
- Math functions → Position nodes: reads positions
src/math_functions.cpp