Development Day 4: Finished Dungeons


After a bit of struggling, I've finished the dungeon generation algorithm (at least for now).  Its pretty simple, just placing down a series of rooms in random locations, after checking to make sure its not overlapping with a previous room.  Then it draws a corridor to connect it to one of the previous rooms (chosen at random).  The first room contains the player, and every other room will (randomly) either be filled with water or contain a random enemy.  Finally, it loops through the whole map checking for valid doorway locations, and decides whether to leave them blank, place a door, or place a hidden door, which looks just like a wall but can be opened into a regular door.

The grey background behind the monsters indicates that they are too far away to be able to detect the player, and are just moving around randomly.  Once you get within 10 squares or so, they will start to home in on you like little homing missiles.  Fortunately for you, they can't open doors (yet).

Next up , I'll be starting on the heart of the game - spells!  I am very excited.

Once this post is over, I'll be posting this first version to the game page so you'll be able to download it and try it out!  Let me know in the comments below what you think!

Controls:

  • Movement with the numpad, arrow keys, or vi keys (l, k, j, h, y, u, b, n).  Bump into monsters to attack them.
  • Press "w" then a direction to enter walk mode, which will keep moving you in that direction until you press another key. w-5 will wait in one spot for 100 turns.
  • Press "o" to open a door (or just bump into it).
  • Press "c" to close an opened door (you will need to pick a direction if there is more than one opened door next to you).
  • Press Escape to quit.

Get Spellforger 1: Entry Exam

Leave a comment

Log in with itch.io to leave a comment.