stefan-brus / mushroom-viking

Learning web development by making an idle clicker game
1 stars 0 forks source link

Gradually display game features. #22

Closed stefan-brus closed 10 years ago

stefan-brus commented 10 years ago

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:

stefan-brus commented 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.

stefan-brus commented 10 years ago

The statistics box should not be displayed until the player has bought an auto-clicker.

stefan-brus commented 10 years ago

Actually scratch that, since it will need to be unlocked quickly for achievements anyway.