Improved code readability and organization, added documentation to functions.
Abstracted the clickClicker() function to buyBuilding(building) -- you pass in a building, such as clicker, and it handles the logic of purchasing that building.
This was done in preparation for new buildings being implemented into the game.
Improved code readability and organization, added documentation to functions.
Abstracted the clickClicker() function to buyBuilding(building) -- you pass in a building, such as clicker, and it handles the logic of purchasing that building. This was done in preparation for new buildings being implemented into the game.