16 May 2012
Code Example: Water Buoyancy Using Corona SDK
The other day I was searching YouTube for mobile app development videos and I came across this great code example on how to implement water buoyancy using the Corona SDK.
I downloaded the code from the iNSERT.CODE website and was able to get the example up and running quickly. The only issue I ran into was that a Logo.png file was used in the project, but was not provided in the zip file. So, I stubbed in another .png file, which I named Logo.png and everything ran fine. Of course, you could just comment out the line that loads the image file, but what fun would that be.
Even if you don’t understand all the math behind the code, you’ll still be able to follow along with what’s happening and you should be able to implement the script into your own project without too much fuss.
Since iNSERT.CODE is based in the UK, I have reached out to the developers through their Facebook page for a possible email interview. Hopefully they’ll respond soon and we’ll get to find out what else they are up to. If they do, I’ll be sure to post their response to the interview questions here.
So, what cool Corona SDK code samples have you come across? Share your links in the comments below.