Self Study 4.A | KIT207 Portfolio


Self Study 4.A | KIT207 Portfolio

Welcome to Self Study 4, this is a slightly different structure compared to normal, there is actually two parts for this week, one of making a game building on the previous weeks work, another is game ideas for a further assignment down the road. 


So, for this we were given some code to apply to our projects, PlayerHealth and Spawner. 

Spawner, replaces out mouse clicking spawning from tutorial 3. This spawns Bagman at every second or so, leading to uh...hordes and hordes of bagman.




Now to actually game it, we needed to create consequences for colliding with an enemy, so using the door script from tute 2, it was repurposed to work with the enemy, this feeds into the PlayerHealth script which I added a death condition when hp reaches zero. I have also added healthpacks, which increase HP using very closely related code, but without the seeking behaviour.




Now in its current state, when I die my camera is currently parented to my player object, which is.... problematic (causes everything to break) but the player is dead so, it just works. (Thats what you see flashing up at the end of the gif.)

I also hacked together some UI to display the HP count, for convience. This is using the legacy text features, which I had more experience with on a canvas which is overlayed on the camera, so its always visible.


This was a shorter one, I must say but most of the content was very easy to apply, plug and play really.
Gotta put my thinking cap on for 4.B though Game ideas!

References:




Leave a comment

Log in with itch.io to leave a comment.