Journal Entry 3


Activity:
- implemented new mechanic - fish tanks the player has to rescue
- added a win screen when the player collects all the fish tanks
- added another way for the player to lose - when fire reaches any fish tank
- added sprites and animations for the fire, water, shark and hydrant
- added blue circle around the shark sprite representing his rolling ball water tank - it changes color depending on the amount of water the player has

Notes:
Adding animations went quite smoothly, I just had to learn how to properly extract multiple sprites from one big sprite sheet. When dealing with sprites and animations most of the time I actually spent looking for sprites that would fit my game. When programming the fish tanks and winning state I encountered small bugs. The game didn't actually stop when displaying game over/win screen, so you could in rare occasions switch between win and lose state even when the game ended. I solved this by including boolean guards signaling the win/lose state and stopping the game with Time.timeScale=0. I also encountered a problem when I tried to setvalues of newly spawned fires which were extinguished right after their creation. The solution was to not modify values of object I can't guarantee are still existing and deal with setting values solely in the constructor.

Invested hours:
- implementing fish tanks and win state: 2 hour
- looking for fitting sprites and animations: 1 hour
- adding sprites/animations: 2 hours

Files

AnimationsDemo.zip 22 MB
May 14, 2023

Get Project C

Leave a comment

Log in with itch.io to leave a comment.