Timing Functions and Start / Finish Functions

blog question:

Basically every scene that we create will have a start, finish, and main objects with its declaration. each of these objects corresponds to different things happening. The start object deals with any set of instructions that needs to be run during the start of the scene. we initialize this in our function play scene, so when a new scene is called and you play the scene the instructions are run. While the finish object, in essence, counts the number of clicks needed to complete the scene. once the user has used up all the clicks the finish object will run any functions that are passed to it. we call our finish object in our check function, where we check ” if (clickCount === clicksNeeded) “.



Leave a comment

Your email address will not be published. Required fields are marked *

css.php