|
Today went very well, I started working on the hazards of the game and decided to start with spikes.
Spikes is just what it sounds like, a set of connecting spikes that damages the player when he enters them. Because the spikes has no solid hitbox I added a pushback to the player so he doesn’t just fall through them and take damage. The reason for not having a solid hitbox is that the player would be able to stand on top of them and take damage which would look a little bit weird.
The arrow trap is made from two parts, the wall mount and the arrow itself. The wall mount has a script on it that constantly fires arrows with a set interval. I can set different damage, speed and interval for each wall mount so that each trap is different. If they would all fire with the same interval and speed the player would get used to the timing and it would be too simple. I may change so that they always have the same damage but the interval and speed setting will definitely stay.
Both spikes and arrow trap was pretty easy to do but they make a big difference in the game.Next time i will try to finish the hazards part completely. Clean the code for arrow trap and spikes and also create and clean the code for the stone dropper which is the last part.
Unfortunately I can’t show any pictures of this because I’m using placeholder graphics for now while I’m waiting for them to be made.

About Semih Parlayan
2014 Programming
|