Posted April 15, 2025 by Sharknelius
As Guard the Carrot nears the end of development, I wanted to share some of the interesting things I discovered while working on the game in Unity.
I hadn't accounted for creating a sound manager object that controls all the sound effects in the game. It turns out that instantiating a sound object every time there is a sound effect occurring is more efficient than placing an audio component on every object that makes a noise. That way, the sound can still play even after the object is destroyed.
One last thing I found interesting was billboarding sprites. I knew the basic of billboarding, but only in one direction (facing the camera forward). While making the game, I researched how to get a front and back sprite to appear based on the camera's position. I didn't realize how much easier it was to make this a separate script that I attach to any object that needs to appear billboarded forward and back. This was something I didn't account for while engineering the game.
The new in-game screenshots reflect that last point I learned!
The game will be showcased at the Spring 2025 Game Expo at Florida Polytechnic University on April 19th!