Skip to content

Phase 2 - Dungeon Environment, Solid Walls & Collision Engine

Choose a tag to compare

@ArfaMariyam ArfaMariyam released this 05 Aug 06:47
· 4 commits to main since this release

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

  1. Download the compiled index.exe binary attached below.
  2. Double-click index.exe to run the updated game.
  3. Try navigating towards the # walls to test collision blocking, or find your way to the D door to clear the dungeon!