Monday, 16 June 2014

Count the Coins

For the month of May, I created this game:


Count the coin is for you to practice adding up the total value of coins presented right in front of you. Here, you are to find the total value of as many sets of coins as possible in a given period of time.



Just as I though the programming went smoothly, I just had to encounter just that one glitch:



Sometimes, the game does not give me the exact equation. For example, when 2x2=4, it will give out, say, 3.9999999586 instead. I've checked the long string of number through tracing. To combat this, I rounded up the displayed number. I programmed it to do so a few times for a good measure.

Little did I know that I accidentally cause the input to always round up to the ten's place as a submitted my entry, happily thought it's finished. I had to reprogram how the game display the user input as well as how it'll be compared to the correct answer to the question.

I have learnt my lesson. I will never, ever use Number as a variable when it comes to using numbers as text inputs. I have also learnt not to go for an overkill.

On the aesthetics, I was disappointed at how it turned out. I find it plain and dull. This is probably because of the dull colors; with an except of a few kinds of coins, only shades of grey are used.

Nonetheless, I feel that this game still has potential. It will be among the first I'll consider revising as a phone app. I'll just need to improve the programming as well as brighten up the graphics. For the latter, what I had in mind is to give an option to change the background, not only by color, but also to give it texture effects, as if the coins are on, say, a wooden table.

For new features, I would also add different currencies to the game so that other players from other countries may get familiarized with the coins they're seeing. By extension, I would also add the respective languages to go with the currencies.

No comments:

Post a Comment