Stage Code Revamped (While Making the Replay System Work)

On my quest of "making everything deterministic so that the replay system works", I encountered a bunch of issues while viewing the code for stages. In my current code, I hardcoded enemy spawn patterns in script and specify difference in behaviors in different enemy prefab varients. This makes the stage implementing process much less flexible. Also, I was using coroutines to act as a timer for stage events and enemy spawns, and coroutines are not deterministic. Therefore, I figured out that I need to rewrite the script for stage and enemy spawning logic.
As a result, I completely revamped the code for stages, and it now supports adding events via editor instead of hardcoding them in script. This will make stage a lot more manageable, and implementing a new stage will take much less time. Stages will also be deterministic so that replay system can work properly.
Get Overflare
Overflare
Fast Paced Bullet Hell
| Status | In development |
| Author | 124sangaming |
| Genre | Shooter |
| Tags | Bullet Hell, Shoot 'Em Up |
More posts
- New Background & Trigger Mines39 days ago
- Demo v0.5 - Stage 2 Preview & New Game Title47 days ago
- Enemy With Multiple Parts61 days ago
- Ray's Cannon Animation69 days ago
- Stage 2 Boss Pattern Complete76 days ago
- Stage 2 Boss WIP83 days ago
- Demo v0.4.1 - Overheat & New Weapon99 days ago
- New Weapon - Arm BusterSep 09, 2025
- Demo v0.4 - Stage 1 PreviewSep 06, 2025
- Real Time Control Prompt UpdateAug 21, 2025
Leave a comment
Log in with itch.io to leave a comment.