This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Closure for namespacing, and to prevent name collisions. | |
;(function() { | |
// Initialize constants | |
var NEW_GAME_DELAY = 1200 | |
var NOTE_DURATION = 800 | |
var ACCELERATION_CONSTANT = 0.8 | |
var POINT_CONSTANT = 10 | |
// Initilize the Simon game as a giant singleton, as only one instance is necessary. |