top of page
Search

Opening Doors

  • seanmcgarry65
  • Feb 10, 2023
  • 1 min read

This week, code was added that automatically saves the player's progress in the event that they die, and a basic dungeon was added, alongside doors that the player can unlock.


The teleporting code now creates a save whenever the player goes through a teleporter, ie. whenever they enter a new layout.

Pressing 'Z' on the Game Over screen loads the player's progress from their last save.


Here is the new dungeon. It's an extremely basic layout, but it works well enough for the game's purposes.


Functional doors are also now in the game.

At the start of the layout, the door is moved to the bottom of the layer so that entities such as the player overlap them correctly.

Weather a door blocks passage is determined by it's animation. If a door is set to the closed or locked animations, nothing can pass through it. If it is set to the open animation, the player can pass.

If the player has at least one key in their inventory when they collide with a door in the locked animation, a key is removed from their inventory, the door is set to the open animation, and the game plays a sound. For gameplay purposes, a door that is closed (as opposed to locked) will -not- open if the player with a key tries to pass through it.


If you want to play the game, follow the link below.




 
 
 

Recent Posts

See All

Comments


bottom of page