Audio is up! Post #6

The mission of today was to make the audio work, and it does! To begin the day we focused on some smaller details and made the ball move with the x-axis of the paddle the player control when the ball is idle (i.e. when it spawns). Before the ball would just reset it’s position but keep it’s direction, meaning if you lost once you would probably instantly lose twice again for a game over because the ball just resets and goes down again. A bit harsh, I’d say. Now the ball goes idle and sets it’s x-axis to be the same as the paddle’s x-axis so you can move around and begin again, on your own terms.

As for the audio, we now have a background song looping, and when the victory condition sets in it changes. I think we’ll make some more sounds tomorrow, like when the ball hits something, and something for when the player has lost. Other things we’ll work on is an option to reset the game after you’ve won/lost. I tried to make it work just a few minutes before we called it a day but so far it only resets the bricks. The controls are still frozen, not quite sure how to fix that. Right now there’s just a key that when pressed down goes through cleanup and then initialize. Maybe it’ll work if we put the global speed (the variable we set to zero to make the game “freeze”) in the cleanup along with the pictures for winning and losing. We’ll see tomorrow if it’s that easy or not.

To get the points for having a soundmanager we seem to have to have a playlist so you can change songs and pause, so there’s that too.

Quite satisfied though, there’s 5 days left until the deadline (gotta write that report too!) but I feel like we’ve come a long way in a very short time.

Leave a comment