Friday, June 15, 2012

Building an iOS App in Corona Labs SDK

Corona SDK - now Corona Labs SDK - is a great tool for building games for iOS and Android. What about building more traditional and standard looking apps? Well, Corona provides a number of widgets which look and behave just like regular iOS controls. Putting these together shows that a few items are missing, but can be built. Corona SDK's Sample Code directory contains a WidgetDemo, to show off the functions provided by the API's Widgets. Here's my list of posts for improving those features:



Tuesday, May 29, 2012

Friday, May 04, 2012

Polygon Triangulation

Massive thanks to the super hero Nicholas Wellcome for this awesome piece of javascript. It allows you to draw a polygon in a clockwise order and then it breaks it into separate polygons - effectively allowing concave to multiple convex polygon conversion. And the best bit? He's provided his nicely commented source code!

Monday, April 23, 2012

Monday, March 26, 2012

Tuesday, February 21, 2012

Wednesday, February 01, 2012

Tuesday, January 31, 2012

Angry Birds in 30 Mins or Less

As posted here on Ansca Mobile's blog:


Here is how to code an Angry Birds style game basis in less than 30 minutes using the awesome Corona SDK...

Friday, January 06, 2012

Thursday, January 05, 2012

Interesting And Social API In Corona SDK

Here is a list of blog posts documenting how to use the most interesting and useful parts of the Corona SDK API by Ansca Mobile...

Many of these can be found on this root page: http://blog.anscamobile.com/category/tutorials/

Firstly, the social API's:
And second, the deeper API's:

Wednesday, January 04, 2012

Tuesday, January 03, 2012

Tuesday, December 13, 2011

Tuesday, December 06, 2011

Calculating Trajectories

When plotting the course of a (lets say) ball thrown in a simulated physics environment it is advantageous to be able to draw the course the ball will follow. Doing some "internet research" brought up this little gem of a site:
From which I was able (yes, it's cheating, but hey) to refactor the javascript and produce the code for a Corona implementation here:
The root of the above site is quite amazing and hopefully can teach everyone (certainly me) about all manner of interesting physics concepts and maths:

Friday, December 02, 2011

Tuesday, November 29, 2011

Wednesday, November 23, 2011

Tuesday, November 22, 2011

Thursday, November 10, 2011

iOS 5 Accessibility Features For Everyone

Playing around under the Settings->General->Accessibility section and found some absolute gems - nice and useful for everyone...

  • General
    • Accessibility
      • Vision
        • Zoom
          Allows 3-finger zoom and pan of any screen, including the lock screen. Controls work as expected.
          Good for when photo zoom doesn't quite do it for you or you need to check pixel-specific placement on a web page.
        • Speak Selection
          Separate from VoiceOver, this allows any selectable text - web pages and such - to be spoken. The usual popup menu gains a "Speak/Pause" item. Speech speed can also be adjusted.
          Good for when you just can't be bothered to read the page.
      • Hearing
        • Custom Vibrations
          When editing a contact this adds a 'Vibration' option immediately beneath the 'Ringtone' option. Vibrations come with 5 pre-set patterns and custom patterns can be very easily recorded, named and re-used.
          Good for when you need to know who is calling you without taking the phone out your pocket.
        • LED Flash for Alerts
          Simply flashes the camera flash LED when an alert, like an incoming call, occurs.
          Good for truly silent but noticeable alerts.
      • Physical & Motor
        • Triple-click Home
          Set this to 'Ask' and it will pop up a menu whenever the Home button is triple-pressed - even when locked.
          Good for easy access to some of the above options.
          From there you've got options to turn On/Off the:
          • VoiceOver
            Not the same as 'Speak Select' - reads anything tapped with a single tap.
          • Zoom
            See above.
          • White on Black
            Inverts the whole screen colour.