mihai9323 / Jocoi

0 stars 0 forks source link

Puzzle Grass #31

Closed mihai9323 closed 9 years ago

mihai9323 commented 9 years ago

The grass in the puzzle will have 5 stages. -> Tall ->High ->Medium ->Low -> flower

Each time a sheep finishes eating from the patch of grass it will decrease a level. All grass starts from Very High. When the grass reaches the stage flower, the game will decide if you uncovered the right flower or not in another script. If the stage is set to flower, sheep cant eat from the patch anymore

The public variables should be an array of GameObjects for the visuals of the stages called grassGraphics, a public enum GrassStates containing the states described above and the property grassState of this type. Each time the property is change (in the setter) the graphics should change(disable all the gameobjects from grassGraphics except the one that needs to be shown). Also this setter should call a function that decides if the correct flower was discovered and continue the puzzle. If the function returns false than it should reset the grass to tall grass. This function will be called in the following way Puzzle.Instance.IsThisNext(this);

enibolas commented 9 years ago

Is there a reason the grass needs more than 2 stages (ie. high/flower)?

On 06 Nov 2014, at 20:15, Mihai Ovidiu Anton notifications@github.com wrote:

The grass in the puzzle will have 5 stages. -> Very High ->High ->Medium ->Low -> flower

Each time a sheep finishes eating from the patch of grass it will decrease a level. All grass starts from Very High. When the grass reaches the stage flower, the game will decide if you uncovered the right flower or not in another script. There should be visuals for each of the stages

— Reply to this email directly or view it on GitHub.