mihai9323 / Jocoi

0 stars 0 forks source link

Puzzle #32

Closed mihai9323 closed 9 years ago

mihai9323 commented 9 years ago

This script builds the puzzle based on the flowers fed to the lamb in the first stage It is a singleton. It doesn't destroy on load. Contains the current progress of the puzzle. Has the public funciton isThisNext(PuzzleGrass patchOfGrass) which returns true or false if the patchOfGrass is the next one that needs to be discovered. If it is the correct one it adds it to the current progress of the puzzle. And displays the visuals and plays the sounds. When the puzzle is completed the class will trigger the animation of the trees moving asside, the sheep collecting flowers and moving on the path