Game Progress Update #24

Update #24

Hello world! Welcome to the twenty fourth Dev with Dave game progress update!

So, at the end of the last update I said I would try and get the settings page on the menu working, and if there was time then I’d make a start on the IAP (In app purchasing) to allow the player to buy more coins. And you know what? I’ve actually managed it! Lol.

Settings page

I’d already mostly finished designing and creating the Settings page in the UI system, and all that was really left to do was add functionality to the ui elements.

The first thing I did was add a couple of variables to store the current sound effects and music volumes.

Next, I added some code in the ui button handler for each of the – & + buttons. This simply adjusts the volume variable, checks it’s not exceeded the limit and sets it to the limit if it has. Then it calls the UpdateVolumeSprite() function.

The volume bars are made of two sprites, a larger outer which is white with a black outline, and the blue inner, which is slightly smaller. The UpdateVolumeSprite() function works out the current volume as a percentage of the maximum size of the blue bar, and resizes the bar accordingly.

I then added the sound and music volumes to a saved file, so they could be loaded in when the game starts. I also added some code to call the UpdateVolumeSprite() function for both volume bars when the values are loaded in.

The very last thing I did was implement the new volume variables every where where the code called a play music or sound effect command.

I’ve left the Ad Settings button for the time being. This will need a consent page building, as well as needing the adverts to be set up.

Coins purchasing

I’ve also managed to get the coin purchase buttons almost working. Unfortunately, as with the adverts, the IAP needs some online setup, so I have been unable to implement that just yet. Once I’m getting ready to Upload a test build of the game to the store, I’ll create the adverts and IAP stuff as well.

However, for now just clicking on the buttons to buy a coin pack will credit the correct amount of coins to the players coin total.

I’ve also added temporary values to the amount of coins you get in each coin pack. I still however, need to create images for the coin packs and other items on this page.

And that’s all for now!

As always I’ll be back with another update on how the game is coming on in two weeks time!

By then I’m hoping to have done some more work on the level design and added a few more zone layouts.

Until next time 🙂