Game
Hensen Hopper
11 months ago

I've replaced the health text on the upper-left corner of the HUD with a healthbar!


image.png

Imagine a heart sprite, which I'm gonna get to work on immediately after I post this, in place of that white square. The health bar depletes as Hensen looses health, pretty much as you might expect.

image.png

It's also fully functional! I've updated the health section of the HUD manager script to, rather than change the text as it used to, re-size the health-bar rect to the player's current health ratiod to their health at the start of the game multiplied by the width of the health bar, which is a serialized field incase I want or need to change that later.

If you're wondering why I created a local variable for the player's current health, it's solely because it feels like a waste of complexity to have my code create a function frame for 5 different calls to playerController.GetHealth() that all return the same value.



0 comments

Loading...

Next up

Been working on the artwork for the "stage complete" screen all morning! Right now I'm improving the shadows/shading for Hensen because he is a part of that screen. I do need to work out the contrast between the text and the backdrop image, I know.

This is a short video showing off the new procedurally generated enemy waves in Hensen! In theory, the game will become more and more unpredictable as I continue to build and implement new enemies!!!

I did get a lot more done on the backdrop yesterday, by the way! It's not finished by any means, in fact, it's quite empty and even ugly in some places, but it's beginning to come together!

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

Close-up of the re-shaded Hensen!

Play @pm-studios ' Bandit Trap Open Beta!

Grab your rocket chairs, vacuums, and toilet tornadoes! Report one more time for our final beta! Live through March 23rd 6 am CET.

Complete quests based on the game!

Play the beta: https://bit.ly/BanditTrapBeta

This is just about the only situation in which I'll ever do this. I almost never put multiple calls to methods on the same line but here I've logged a warning to remind furure me to do something I didn't have time to do today in a glaringly obvious way.

Very unfinished but the backdrop image, as it is in this video, is already leagues better than what I had last weekend! I'm going to work on it incrementally over the coming weeks as I work on implementing the stages idea I talked about before!

BIG NEWS: Your Bandit can wear a Game Jolt hat and shirt in Bandit Trap!

Defend your home or steal treasure in the open beta: https://bit.ly/BanditTrapBeta

It ends on March 23rd at 6 am CET!

Okay, so the stages and score saving are both more or less working. Your score and high score will be saved throughout the lifetime of the application. Currently nothing saves when the game is closed, though, I'll be working on that next weekend.