Thursday, November 10, 2016

Explaining the Candle Game

In this video, I explain how the candle game manager listens and detects once the puzzle is complete, and how the other scripts of the game add the functionality for it. This puzzle gives you 8 candles, one of which is already lit. The goal of the puzzle is to light all of the candles using the one that you were given. Once all candles are lit, the puzzle is complete.



All in all, the manager listens to each of the wicks for each individual candle and determines if it is lit. If all wicks are lit, it registers that the puzzle is complete. You can light a candle with another one if it is already lit. This is done through detecting collisions and toggling the flame/light particle effect from inactive to active.

No comments:

Post a Comment