How ashbirx/hexaswarm works
HEXASWARM is a single-file raylib survival shooter: the player rotates and fires a stationary turret, survives waves of enemies that can merge into stronger hunters, and pursues a high score. The principal game stages and screens are implemented in src/raylib_game.c; src/vfx.h supplies its visual-effects layer. The excerpts do not show all input, persistence, or asset-loading code, so those documented capabilities are represented without guessing their internal call paths.
Main entry points: raylib_game.c Game Runtime · vfx.h Effects Module
Components 17
Combat Loop
- Game Runtime
src/raylib_game.c - Turret Combat
src/raylib_game.c - Bullet Hits
src/raylib_game.c - Enemy Swarm
src/raylib_game.c - Enemy Merging
src/raylib_game.c - Survival Scoring
src/raylib_game.c - High Score
src/raylib_game.c
Game Screens
- Screen Flow
src/raylib_game.c - Title Screen
src/raylib_game.c - How To Play
src/raylib_game.c - Pause Screen
src/raylib_game.c - End Screen
src/raylib_game.c
Visual Effects
- Effects Module
src/vfx.h
Game Resources
- Game Assets
src/resources
Other components
- Player
- raylib
- Local Storage
Connections 15
- Player → Game Runtime: plays
README.md - Game Runtime → Turret Combat: runs
README.md - Turret Combat → Bullet Hits: fires
README.md - Bullet Hits → Enemy Swarm: hits
README.md - Enemy Swarm → Enemy Merging: merge nearby
README.md - Enemy Merging → Survival Scoring: threatens
README.md - Survival Scoring → High Score: tracks run
README.md - Game Runtime → Screen Flow: dispatches
src/raylib_game.c - Screen Flow → Title Screen: shows
src/raylib_game.c - Screen Flow → How To Play: shows
src/raylib_game.c - Screen Flow → Pause Screen: shows
README.md - Screen Flow → End Screen: shows
src/raylib_game.c - Game Runtime → Effects Module: calls
src/raylib_game.c - Game Runtime → raylib: uses
src/raylib_game.c - High Score → Local Storage: saves locally
README.md