Coding Skills: Future Development 9.0
- neelvinay17
- Oct 16, 2023
- 2 min read
Updated: Oct 19, 2023
While the game itself may be open world, there are still going to be some sections that are only going to be accessible by either keys, spells or boss fight doors, which I'll explain later.
Standard Doors(Keys):
These are going to be the most common type of door that are going to be found anywhere from story progression to unlocking secret rooms. The code for these will be fairly simple; a solid block that once interacted with, will either tell the player to find the right key, or will unlock the door, by checking it with an if statement if the player has the right type of key. If yes, then it will call a rotation method rotating the door 90 degrees left/right.
Spell Doors:
These are going to be special doors, that can only be opened by certain spells unlocked by trading or progressing through the story line. They can be doors to valuable treasure, or to access checkpoints, or go to the next section in the story. These will be coded in a similar manner, that they will have a hitbox collider, and if the right spell is used again using an if statement, then the door will have visual effects to make the door disappear away.
Boss Fight Doors:
These are going to be the rarest doors in the game, only found right before a fight with the boss. They will work in a rather similar manner to the spell door, only with some minor differences and added functionality. They will work by detecting if the player has interacted with the door, which will be possible by pressing a button if close enough to the door. If the interacted bool is true, a small cutscene of the player entering the boss fight arena will play out, and as the player is inside, the door will become solid behind them. This will ensure no player can run away if close to dying in the fight. To make the door solid, it can be done fairly easily by making an invisible barrier rectangular block that blocks the player's exit.
______________________________________________________________________________________________________





Comments