Monday, 21 May 2018

Week 33

This is the final post of the project. I worked on making a "You Win" text come up when you kill the last enemy to signal the end of the game.

This was pretty simple to do really, I just made a winner widget and chose where I wanted the text to come up. As you can see in the screenshot I made it in the centre of the screen.
I then added this simple code onto my spaghetti code to make it show up when the enemies alive counter hit 0.

And here you can see the text box working when the enemies alive hits 0.
I then decided after playing through the game, I wanted to move the start location to on top of the dried up waterfall so that is what I did.

Monday, 14 May 2018

Week 32

This week is the one from last week of me working on my project, What I wanted to do this week was make a kill counter, an enemies alive counter and a health pack so that when you run underneath the health sign it heals you back to full.

Lets start with the health package.

The first thing I did was design the health sign to go on to float in the air and make it bright enough so you spotted it and noticed it, I feel I did that pretty well.
The next thing I did was add the trigger box underneath it so that when you step under it it gives you 100 health back, Here is the code that does this, it is actually really really easy to do.

Next I moved on to the Kill counter and the Enemies Alive counter.
The first thing I did was choose where I wanted to position it on the screen, I chose just below top left, so it is easily visible to the player when they are playing. The next thing I will show you is the Spaghetti code that adds a kill to the counter upon a death of the enemy, and also takes one off the opponents alive counter.
And finally this is it in game, it starts with 67 alive as that is how many opponents there is on the map. What I plan to do next week to finish the project off is to make it so when the Enemies Alive goes to 0 it says "YOU WIN" on screen.

Monday, 7 May 2018

Week 31

This week I moved on to adding the other monsters around the world.

They are all set up the exact same was at the bear so I wont go through the code this time as it is just what you have seen from before.

The monsters I added this time were spiders, in the ruins area. (Although they unfortunately cant navigate it too well.) I added Wolves into the open area around the other side of the map, in the forest, and around the volcano.

I made a new "castle" sort of building which had lots of really evil worms in there that will try and eat you whenever you go near them.

I finally added in the Boss, the only thing different between him and the other monsters is that he has 200 HP instead of only 50. Meaning it takes 4x the amount of shots to kill him.

Below is a screenshot if each of the monsters in their new homes.