Phase 2 - Dungeon Environment, Solid Walls & Collision Engine
What's Included in Phase 2
Phase 2 brings full dungeon environment layout mechanics and real-time obstacle collision processing to Slayie!
Key Features Implemented
- 2D Array Map Data Matrix (
char dungeon[10][10]): Stores the actual dungeon grid in memory. - Solid Boundary Walls (
#): Surrounds the map with protective outer walls and places interior obstacle barriers. - Collision Detection Engine: Calculates target coordinates (
nextX,nextY) before applying movement—blocking the player@from walking through walls. - Dungeon Exit Door (
D): Places an exit tile at position(8, 8)that triggers a level-clear message upon arrival.
⚙️ How to Test
- Download the compiled
index.exebinary attached below. - Double-click
index.exeto run the updated game. - Try navigating towards the
#walls to test collision blocking, or find your way to theDdoor to clear the dungeon!