How gathasper15/bachelorproject works
This repository is a Raylib-based 2D game framework with a sample game entry point. Its principal workflow is game startup and execution, with levels and worlds providing the game structure and entities/components defining behavior and rendering. Supporting capabilities include input handling, physics/collision, sprite visuals, and procedural map, Perlin, and Voronoi generation. The source index establishes many module references, but excerpts do not show most runtime calls, so the graph avoids asserting an unverified execution pipeline.
Main entry points: World.cpp World · Context.h Update/render context · PerlinPlateComponent.hpp Perlin plate · VoronoiComponent.hpp Voronoi component
Components 26
Game Runtime
- Program entry
Source/Main.cpp - Sample game
Source/UserGame.hpp - Game loop
Source/Game.cpp - Update/render context
Source/Context.h - Level manager
Source/Game/LevelManager.cpp
World and Entities
- Level
Source/Game/Level.cpp - World manager
Source/Game/WorldManager.cpp - World
Source/Game/World.cpp - Entity
Source/Game/Entity.cpp - Component base
Source/Game/Component.h - Map component
Source/Game/Components/MapComponent.hpp - Collider component
Source/Game/Components/ColliderComponent.hpp - Sprite component
Source/Game/Components/SpriteComponent.hpp - Camera movement
Source/Game/Components/CameraMoveComponent.hpp - Collision behavior
Source/Game/Components/CollisionBehaviorComponent.hpp
Graphics and Generation
- Perlin plate
Source/Game/Components/PerlinPlateComponent.hpp - Voronoi component
Source/Game/Components/VoronoiComponent.hpp - Perlin generator
Source/Graphic/perlin.cpp - Voronoi generator
Source/Graphic/VoronoiDiagram.cpp - Map functions
Source/Game/Map/MapFunction.hpp - Animated sprite
Source/Visuals/AnimatedSprite.cpp
Input and Physics
- Input handling
Source/Input/Input.cpp - Physics body
Source/Physics/Body.cpp - Metal compute
Source/Shaders/MetalCompute.h - Math utilities
Source/MathLib/MathLib.h
Other components
- Game developer
Connections 15
- Program entry → Sample game: names entry factory
Source/Main.cpp - Game loop → World manager: references manager
Source/Game.cpp - World → Collider component: references collider
Source/Game/World.cpp - World manager → World: references world
Source/Game/WorldManager.cpp - World → Entity: references entities
- World → Level: references levels
- World → Physics body: references bodies
- Entity → Component base: uses base type
- Update/render context → Input handling: references input
Source/Context.h - Update/render context → Level manager: references manager
Source/Context.h - Perlin plate → Metal compute: imports compute
Source/Game/Components/PerlinPlateComponent.hpp - Perlin plate → Perlin generator: imports generator
Source/Game/Components/PerlinPlateComponent.hpp - Voronoi component → Metal compute: imports compute
Source/Game/Components/VoronoiComponent.hpp - Voronoi component → Voronoi generator: imports generator
Source/Game/Components/VoronoiComponent.hpp - Map component → Map functions: imports functions
Source/Game/Components/MapComponent.hpp