What's Included in Phase 4
Phase 4 completes Slayie by adding enemy encounters, combat health checks, game-over conditions, and persistent game-state saving and loading using local text files!
Key Features Implemented
- Enemy Encounters (
E): Hostile goblins placed across the dungeon. Colliding with an enemy engages combat, dealing 25 damage to the player before eliminating the foe. - Game Over State: If
playerHealthdrops to 0 or below during combat, the dungeon run concludes with a game-over terminal screen. - Persistent Save Engine (
saveGame): Pressing[K]saves your active coordinates, health, coins, and the exact remaining map layout intoslayie_save.txt. - Save State Loader (
loadGame): Start menu prompts to either launch a fresh run or restore your previous checkpoint directly from disk.
Live Gameplay Preview
How to Test
- Download
SLAYIE.exefrom the assets below. - Run the executable in your terminal.
- Choose
1for a new game or2to load a previous save. - Use
W,A,S,Dto navigate,Kto save your game, and fight enemies (E) on your way to the exit door (D)!