The Cone Game

Karna Mital

Scene 1: Bunny gives the instructions for the game, which can be skipped at any time by clicking the toyBall (world.instructions)


Scene 2: The round begins (1st iteration of a loop). The toyBall is hidden under one of the cones using world.hideBall, and that cone's isAnswer variable is set to true (world.prepRound)


Scene 3: The cones perform world.dance1, then the player has 5 seconds to guess which cone the ball is under (world.processGuess), or can opt to not guess and try for more points by guessing after more dances. If the player guesses, after world.processGuess, world.endRound is triggered and the game's loop starts the next iteration.


Scene 4: Right or wrong answers are determined by world.processGuess, which uses the methods world.correctGuess and world.wrongGuess and the function world.pointsCalculator to adjust the score. The answer is shown with world.revealAnswer.


Scene 5: World.endRound puts the cones and toyBall back in their original places, and sets all of the cones' variables to false.


Scene 6: The cones perform dance 2, a composite movement of the cones around both the bunny and themselves. Again, world.processGuess is triggered, and if no guess is made, the game goes to dance 3.


Scene 7: World.dance3 features the more standard place switching of cones, with occasional switches by all 3. World.processGuess is triggered, this time with the caveat that a wrong guess will cost the player 2x as many points as they would have gained from a right answer, as determined by world.hammerTheScore. To ensure that the round ends no matter what, world.dance3 finishes by calling world.endRound.


Scene 8: With each successive round, the game awards twice as many points as the previous round. After the game's 5 rounds are complete, world.myfirstmethod leaves the game loop, and world.gameOverSequence is called. The bunny returns, awarding the player different ranks based on the player's score, and doing fun actions for the higher ranks.

Return to Karna's Homepage