Friday, 25 November 2016

This is all the coding that goes into my boss room. There are 3 universal codes in the game as of now which are the health mechanic of the games. Making it where when the room starts what ever health there was in the previous room also follows you into this room meaning if you were to take damage then your health would be lower during the boss fight making an element of difficulty to it. the next peice of code triggers the boss to spawn launching them into 3 directions as there are three bosses in my boss fight which are moving at a fast speed. The final piece of code is the code on the boss itself, The boss when ever it collides with a wall will bounce off in another direction and when ever the boss takes damage from your fireball it would spawn fire monsters in a circle you have to dodge or else you take damage.

In this room there are various different pieces of code that goes into my actual dungeon, The first mechanic you come across during the game is the doo mechanic where once you collect a key a door opens allowing you to progress, this is done by connecting a delte instance code ointo another object meaning when an event happens it deletes that object in the world allowing me to go fourth. Another peice of code is connected to the Fire monsters where if it collides with a wall it bounces back and if it hits a player the player takes damage while also bouncing back.  There is a bright yellow block that flashes different colour in my dungeone that also has this mechanic but when you collide with the object it kills you instead of damaging you. A final peice of code is right at the end of the dungeon where when you collide with it it teleport you into the boss room using the change room mechanic

No comments:

Post a Comment