SpencerTSterling / CatClicker

0 stars 0 forks source link

buyBuilding function #12

Closed SpencerTSterling closed 8 months ago

SpencerTSterling commented 8 months ago

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.

SpencerTSterling commented 8 months ago

Closes #10