Corona SDK Volume Sliders

If you are developing mobile apps with Corona SDK that use volume controls, here’s a quick tip for implementing more natural feeling controls.  Assuming that the control is a slider with values from 0 to 100, all it takes is one line of code:

volume = (math.pow(3,sliderValue/100)-1)/2

But since I really like seeing things work myself, I’ve built a very small demo project that you can download and run:
screenshot
VolumeSliders.zip

If you would like to read more on why this formula works or why it’s even needed, this page may be interesting for you: http://www.dr-lex.be/info-stuff/volumecontrols.html

The Tragedy Of The Bug

Wing was sure picking up new things quickly. He was dedicated and he was a fast programmer, although being very fast doesn’t always mean also being very thorough. A few days into his summer job I went out for a coffee break, and immediately upon my return – barely after setting foot into the office door – I was greeted by a very distraught looking Wing.

“We have a problem. Big problem.”

Continue reading

The Second Day

The first day for the new summer student that we hired was fairly mundane: a welcome to the other staff, a walk through the building, handing over of keys and things like that. But the second day was another story – the second day laid the ground for what was to become a memorable summer.

Wing was from China, and had moved to Canada four years prior in order to take classes at a Canadian university. On day number two, Wing showed up to work at 8:52 a.m. By no later than 8:54 a.m. he was logged into his computer and ready to work, looking at my expectantly and awaiting his marching orders. I sighed, since I hadn’t even had a good run at my coffee yet.
Continue reading