Showing posts with label ansca. Show all posts
Showing posts with label ansca. Show all posts

Thursday, 26 April 2012

corona lua storyboard...


When I was developing googly face the main problem I had was keeping variables clean and listeners nulled after use. My developers head was working like it would in as3. That didn't cut it... In the end, admittedly googly face scene management was cobbled together with a barrage of "nilling" vars and listeners here there and every where.... meh it worked, but would of been a frecking nightmare if it was in anyway more complicated.
https://play.google.com/store/apps/details?id=com.googleeyes&hl=en

This was the main issue I had to address when I thinking about my new app.
I had heard about coronas new storyboard API and this evening I have been doing some research into how it all works... Looks great!
http://blog.anscamobile.com/2011/11/introducing-the-storyboard-api/

Its also made me that little bit more comfortable with my jukebox development ... Turns out the framework I came up with in my head for the juke is very similar to the storyboard api... maybe a little simpler but the same idea.

So anyway I can relate to this storyboard api quite easily.. But I need to get a better understanding of tables... I think its allot like objects in flash. This is what corona recommends for passing groups of data from one scene to the next.

Im also thinking about implementing a model as well, like in a MVC architecture. I think this would be one lua file full of global vars...? maybe? I dont like globals though... I was always advised to stay away from them in flash and always have done!


We will see...

I have some graphics that I've been working on this week. Time for some coding! ... It looks like a wet weekend so should get some done.

Im also going to do a quick blog post about screen set up for bother android/Idevice

Wednesday, 14 December 2011

Corona Modules... the little buggers.

So Modules in Corona are easy to use but dont work so well...
Ansca may brag that coding with lua is "simpler" and less code than action script. But they should really look at why action script has matured over the years specifically to deal with issues like the one I am having with modules.

If your having trouble with global variables and modules that you thought you had cleared out but dont... then this might be the way forward. I think i will be trying this over the weekend...
A Better Approach to External Modules

I will right my own example when I understand this method better.