Money Scroll

Money Scroll!



I make this many of 'em: per

Change background:

Some notes: $56,516 is the median income in the US and I decided the exchange rate for Snickers based on prices from Target.com.

Money Scroll was the first Javascript app that I created. At the outset, the idea was for users to put their salary into the textbox and the app would show them how much they are making as they are making it.

In my first crack at the problem I wrote some spaghetti code that got the job done, but I was having trouble squishing bugs and implementing updates. After some deliberation, I decided to make the switch to object-oriented programming where each coin is an instance of a coin class and a timer creates new coins every so often based on the salary and value. Each coin in the array knows its own position and this cleaned up the code significantly.

I also used this project to delve into JSON data. Each coin pulls its data from a JSON file and I also store the backgrounds in a JSON file. My next step will be adding a form to this project so users can submit their own backgrounds and currencies with values and images of their choosing.

I have to thank Dale for suggesting some edits and additions that make this app infinitely better.