Code Example: Water Buoyancy Using Corona SDK

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.

Charles McKeever
CoronaGeek

Charles McKeever
charles@coronalabs.com

Charles McKeever is a life long computer geek who enjoys exploring technologies to understand how they work, how they can be smashed together, and how they can be used to fuel entrepreneurial endeavors.

7 Comments
  • Charles McKeever
    Posted at 14:47h, 06 December

    I still think this is one cool trick.

    • Doug Rogers
      Posted at 19:47h, 23 February

      The water buoyancy concept and video looks extremely interesting. Unfortunately, I tried to visit the website, but could not download the code for the example. Visitors can download the code with a tweet and download, but the twitter link is not working. Does anyone out there have a copy of the code available? Thanks.

  • Paulo
    Posted at 18:22h, 27 February

    I would also get the sample code. Can anyone provide me the code? Thanks

  • jeremy
    Posted at 22:06h, 07 June

    Yep tweet code on their website does not work.

    If we cannot see the code, then please remove from “Code Examples” …. ??

  • Charles McKeever
    Posted at 15:14h, 09 June

    I wasn’t able to get in touch with the original author, so I’m posting my copy of the code here: https://github.com/CoronaGeek/Corona-SDK-Water-Buoyancy-Example

  • Adam
    Posted at 08:22h, 09 September

    Hey, it’s Adam here from INSERT{CODE}.

    The site and download links have been temporarily down so apologies for that. The link are back up now here:

    http://insertco.de/water-buoyancy-in-corona-sdk/

    • Charles McKeever
      Posted at 08:36h, 09 September

      Thanks Adam. The site looks good. Can’t wait to see your future tutorials. Cheers!

Post A Comment