How lepetitdhomme/procedural_generation works
This small C/SDL2 program initializes a window, generates one randomly sized text room into a file, then immediately cleans up. The event/render loop is commented out, so no interactive display of the generated level is implemented. The map reflects only the shown source; the README is empty.
Main entry points: main.c SDL startup · generation.c Text level generator · common.h Shared definitions
Components 7
Application
- SDL startup
main.c - Shared definitions
includes/common.h
Level generation
- Text level generator
generation.c - Random integer
main.c
Other components
- Launcher
- SDL2 runtime
- Level output file
Connections 7
- Launcher → SDL startup: launches
- SDL startup → SDL2 runtime: initializes window
main.c - SDL startup → Text level generator: calls
main.c - Text level generator → Random integer: calls
generation.c - Text level generator → Level output file: writes room
generation.c - SDL startup → Shared definitions: includes
main.c - Text level generator → Shared definitions: includes
generation.c