Flappy Pig – Fixes, Tweaks and a New Design
Day 081 #100DaysOfCode
Day 045 #100DaysOfGameDev
I worked on cleaning up the background music a bit today. Instead of having it keep playing non-stop while the game is active, it now cuts out upon KO and then reinstates when the game restarts. It’s a subtle change, but an important one.
To facilitate this change I had to write a new script, called BGMusicControl. This script is a simple on/off toggle that can be controlled from GameControl during key states, namely Update and FlappyPigKO.
I also tweaked Flappy Pig’s flapping animation so it is a lot tighter now. By reducing the amount of time between instance calls from 0.5 seconds to 0.2 seconds, he now seems to flap more accurately with repeated mouse clicks.
Rounding out my day I put in some design time on a new bonus scoring pickup I plan to add to the game. It is a spinning coin that players will be able to choose to go after to boost their score.