How alanparesys/minestorm works
MineStorm is a Raylib arcade shooter. The player starts at the title screen, enters gameplay, steers and fires the ship, fights enemy waves that advance through levels, and can pause or reach game over. Game logic also covers enemy variants, collision handling, bullets, and explosion effects; custom 2D geometry supports those mechanics. The sampled game code explicitly updates enemies and the mothership. Other connections are limited to relationships documented by the README or shown by the source index; unsampled details are not assumed.
Main entry points: game.c Screens and menus · collision2D.c Collision detection · enemy.c Enemy waves · rectangle2D.c 2D shapes
Components 17
Game flow
- Program entry
Code/src/main.c - Screens and menus
Code/src/game.c - Lives and levels
Code/src/game.c
Combat simulation
- Ship controls
Code/src/game.c - Enemy waves
Code/src/enemy.c - Player and enemy bullets
Code/src/bullet.c
2D geometry
- Collision detection
Code/src/collision2D.c - 2D shapes
Code/src/rectangle2D.c - Polygon geometry
Code/src/polygone2D.c - Sphere geometry
Code/src/sphere2D.c - Vector math
Code/src/vector2D.c - Axis-aligned bounds
Code/src/aabb2D.c
Rendering and assets
- Explosion effects
Code/src/explosion.c - Game assets
Code/include/struct.h - Raylib runtime
Library/include/raylib/raylib.h - Images and sounds
Assets
Other components
- Player
Connections 22
- Player → Screens and menus: chooses and controls
README.md - Program entry → Screens and menus: starts game
Code/src/main.c - Screens and menus → Ship controls: updates gameplay
Code/src/game.c - Screens and menus → Enemy waves: updates enemies
Code/src/game.c - Screens and menus → Lives and levels: advances levels
Code/src/game.c - Ship controls → Player and enemy bullets: fires shots
- Enemy waves → Player and enemy bullets: fires shots
- Screens and menus → Explosion effects: updates effects
- Screens and menus → Collision detection: checks collisions
- Enemy waves → Collision detection: uses hitboxes
- Collision detection → 2D shapes: uses bounds
- Collision detection → Polygon geometry: uses polygons
- Collision detection → Sphere geometry: uses spheres
- Collision detection → Axis-aligned bounds: uses bounds
- 2D shapes → Vector math: uses vectors
Code/src/rectangle2D.c - Polygon geometry → Vector math: uses vectors
Code/src/polygone2D.c - Sphere geometry → Vector math: uses vectors
Code/src/sphere2D.c - Axis-aligned bounds → 2D shapes: converts rectangles
- Screens and menus → Raylib runtime: renders and reads input
- Screens and menus → Game assets: uses game assets
Code/src/game.c - Game assets → Images and sounds: references media
- Explosion effects → Raylib runtime: draws animation