Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Augment unlocking

Within our game one of our features that we wanted was augment unlocking. That way there's something for players to shoot for other than just beating the game. Unfortunately that wasn't built into our system at all. Our system was designed to take 3 different arrays of augments for the 3 different rarities that spawn. 

After making an array of bools that represents our spawn-able list I had to convert and sort them into the 3 rarity arrays. What I did was take the Enum value for each augment casted it to an int, which would represent the position in the array. Then from that Enum value I would take the base implementation of the augment to get its rarity to decide what list its put in. Then after that I would use the chests original method of spawning items.

After that I simply gathered a list of things to track and saved some as variables, and others were just variables that existed for the run. Then by once those values hit a certain threshold it would set the bool to true at whatever spot in the array it represented. And because this information is populated when opening a chest you could get your brand new unlocked augment on your next chest.

Unfortunately because this was all back end stuff I have nothing to show. The UI for actually unlocking an augment hasn't been implemented yet.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.