DevLog: Point System and Random Items


DevLog author: Alex

Evening ya'll.

Today I'm bringing an update on two main features that were implemented during this week.  First, A points system was implemented, which tracks how many objectives the player completes.  Second, a pickup randomizer was created in preparation for the building randomization.

The points system was a feature that was talked about during early development of Lustrat Somnia, but was mostly put in the backlog in favor of more complicated features.  Thankfully, implementing this system was not too hard.  Using the GameInstance class, which already stores more information needed throughout the game, a function is called that tallies up the amount of objectives collected, multiplies a score multiplier, and adds it all up.  A pretty simple system that only gets called on win or lose conditions.

The object randomizer, originally thought to be more complicated, actually took me about an hour to make. The idea behind the randomizer for pickups was that since each building was eventually going to become an actor, All that was really required was to place this new actor that, on begin play, would change into one of the two pickups we have at the moment.

Get Lustrat Somnia

Leave a comment

Log in with itch.io to leave a comment.