Game
Hensen Hopper

5 months ago

I've decided to have the statistics behind the quests in Hensen Hopper be handled as actions reported to the quest manager rather than try to write variables into a whole bunch of scripts solely for quests.


To put this snippet in laymans terms, any script can call the ReportAction method in the quest manager to report an action that has occurred and the quest manager will add 1 to the number of times this action has been reported (the action name is saved as a key and the times it's been reported as it's definition in a dictionary).

This way, whenever I go to create the quests themselves, I can do so relatively easily because I can call this method from any script without dirtying up THAT code. I can design quests to defeat a certain enemy X times, defeat X enemies, survive for X waves, etc. by setting the quest's internal requirement to a certain action having been reported X times then calling ReportAction from whichever area of my codebase handles that particular event in the game and comparing the values every so often (I'll probably do this in the FixedUpdate loop or better yet write an OnActionReported event in this script and call it whenever ReportAction is called so it's not being checked 50 times a second, literally)



0 comments

Loading...

Next up

Alright, I've been thinking... I wanna do a fly-off-screen when you complete a stage in Hensen Hopper (classic shmup stuff) and I COULD just hardcode it into the character controller script but I came up with a more nuanced solution.

Here's a short video showing off the improved gameplay loop and "stage complete" screen. The updated artwork for Hensen and his gun and the honey bullets can also be seen.

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!

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

I've worked out a process for drawing bushes that I'm using for the backdrop! First I draw the branches, then "paint" where the bush texture will be, copy it's alpha to a new layer in white, then draw it's shadows in a layer over the bush layer.

I've been working on the backdrop today! Among other things I've done, I made a bush! I know, SOOOO impressive lol.

This week's Fan Art Friday celebrates Bandit Trap! Accept the quest in your quest log to get started.

Defend your home or steal treasure in the open 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.