anthkris / id-simulator

A reigns-like yes/no game about being an instructional designer
MIT License
4 stars 5 forks source link

money stats now update on continue button click #12

Closed JacobSnover closed 6 years ago

JacobSnover commented 6 years ago

In respondToAction I added an algorithm to update the money stats, while trying to keep current visuals intact. Had to strip out special chars from moneytext, and then coverted anything over one thousand dollars as a truncated $1.7K as opposed to $1,700K. Have not seen a reason to subtract money yet, so that feature is not in this algo yet. Have plans to refactor.

JacobSnover commented 6 years ago

Look at lines 144 - 157 to see my additions

anthkris commented 6 years ago

@JacobSnover What are your thoughts about the way money is displayed? Is it stupid? Might it be better to just show all of the digits, instead of the K? Also what do you think about the other stats?

JacobSnover commented 6 years ago

I added functions to handle updating all the stats now. There is different code to make the money stat display 1 of either ways, currency or decimal.

anthkris commented 6 years ago

@JacobSnover LGTM!