How farthenginer/mikeyengine works
Mikey Engine is a small SDL2-based 2D game engine. A game initializes the runtime, processes SDL events and per-frame updates, then renders ECS entities and particles; game logic can use groups, collisions, and tile maps. The graph preserves the README’s documented animation, audio, text, debug, and effects capabilities. Some subsystem links rely on README documentation or the SOURCE INDEX because their implementation excerpts were not provided.
Main entry points: Game.cpp Game loop · SpriteComponent.h Sprite animation · TransformComponent.h Transform · Components.h Component registry
Components 18
Game runtime
- Application entry
Engine/main.cpp - Game loop
Game/Game.cpp - Keyboard input
Game/KeyboardController.h
Entity components
- Entity manager
ECS/ECS.h - Component registry
Engine/Components.h - Transform
ECS/TransformComponent.h - Sprite animation
ECS/SpriteComponent.h - Collider component
ECS/ColliderComponent.h - Vector math
Engine/Vector2D.cpp
World and effects
- AABB collision
Engine/Collision.cpp - Tile map loader
Game/Map.cpp - Particle effects
ECS/ParticleComponent.cpp - Trail effects
ECS/TrailComponent.cpp
Assets and presentation
- Asset manager
Managers/AssetsManager.cpp - Texture operations
Managers/TextureManager.cpp - Audio and text
Game/Game.cpp
Other components
- Game developer
- SDL2 services
Connections 26
- Game developer → Game loop: implements game
README.md - Application entry → Game loop: starts runtime
Engine/main.cpp - Game loop → Entity manager: updates entities
Game/Game.cpp - Game loop → Entity manager: draws groups
Game/Game.cpp - Game loop → Particle effects: updates effects
Game/Game.cpp - Game loop → Particle effects: renders effects
Game/Game.cpp - Entity manager → Component registry: hosts components
Engine/Components.h - Component registry → Transform: registers
Engine/Components.h - Component registry → Sprite animation: registers
Engine/Components.h - Component registry → Collider component: registers
Engine/Components.h - Keyboard input → Transform: controls movement
README.md - Keyboard input → Game loop: toggles debug
Game/KeyboardController.h - Sprite animation → Transform: reads position
ECS/SpriteComponent.h - Sprite animation → Asset manager: fetches texture
ECS/SpriteComponent.h - Asset manager → Texture operations: loads texture
Managers/AssetsManager.cpp - Sprite animation → Texture operations: draws sprite
ECS/SpriteComponent.h - Collider component → Transform: reads bounds
ECS/ColliderComponent.h - AABB collision → Collider component: checks AABB
Engine/Collision.cpp - Game loop → AABB collision: uses collision
Game/Game.cpp - Game loop → Tile map loader: loads tile map
Game/Game.cpp - Tile map loader → Entity manager: creates entities
Game/Map.cpp - Transform → Vector math: stores vectors
ECS/TransformComponent.h - Game loop → Audio and text: plays sound
Game/Game.cpp - Game loop → SDL2 services: initializes runtime
Game/Game.cpp - Sprite animation → Sprite animation: animates and fades
ECS/SpriteComponent.h - Trail effects → Game loop: uses frame timing
ECS/TrailComponent.cpp