Closed stefan-brus closed 10 years ago
It would probably make sense to keep the items that should be momentarily hidden from display in some kind of data structure, where they are linked to the condition that will unlock them, perhaps in the form of a function that returns a bool. Once they are unlocked, this pair is removed from the data structure.
If it is all a matter of DOM objects, it could easily be an associative array where the key is the DOM query, and the value is the function containing the condition.
The statistics box should not be displayed until the player has bought an auto-clicker.
Actually scratch that, since it will need to be unlocked quickly for achievements anyway.
The game should, when it is first loaded, only display the absolute minimum required amount of features As the player progresses in the game, more and more features should be unveiled.
Examples: