I’m *really* close to finishing the game. Just a couple more things and I’ll be able to release it, about two dozen hours later.
With the scoreboard figured out, I wanted to move on to making my game feel a little bit better than the last one. And to do this, I was inspired by two YouTube videos that I want to share here (and will list on my Reference page).
Now, I didn’t want my game to look quite as intense as the end result in the game from the first video, but I knew I could punch it up a bit.
One of the first things I did was to add sound. Fortunately, there exists freesound.org which is an amazing resource for folks like me. I simply searched things like “golf putt” and “golf hole” and game up with the first two sounds, and then “burst” for the third. (We’ll get into that in just a minute).
The little click tap of the ball being hit made such an immediate difference, and I was really happy with it.
Of course, adding sound meant that I should also add a “Mute” button, which I did after much trial and error.
You can see the basic structure up here. In summary:
- When the player clicks the Mute icon,, add 1 to the global variable SoundIsMuted
- If that variable goes above 1, it reset to 0. If it’s 0, turn all audio on and make the Unmute icon (which technically shows that the game is currently muted) invisible
- If it’s 1, turn all audio off and make the Unmute icon visible.
This took me…longer than I’d like to admit.
But it works!
I also added a ball select screen – I’m really quite proud of this, if only because everything worked like I wanted it to on the first try. I might alter the green color in the final version because it looks a little fuzzy on this blue background.
Lastly, I also added particle effects to a few different things. Most notably, the end screen and each time you sink a hole.
I actually have two different particle effects: this yellow/gold is for the end screen and for holes in one. There’s a less vibrant blue one for regular holes.
Fortunately, Construct made this really easy with the “Particle” effect, so there was very little I had to do here.
And with that, we’re almost done with the game. I want to add a few more sounds and clean up the physics (I’m so close!) but otherwise, all the holes and screens are done.
Expect the next post to be celebration!