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 18 April 2012

Googly face scroll bar masking issue

Spent this evening trying to sort a bug out that occurs if your in edit mode of googly face. At this point if the app loses focus, for example you answer a phone call and you then go back to googly face you will find all the graphics are screwed up. At first, after a corona staff member looked at it we came to the conclusion that this was an issue with load from media method. I even checked this in as a bug .. but after a little more playing I have come to realise it has nothing to do with get media method. It is Infact something to do with a mask assigned to a group that contains the scroller for the menus. I'm still not completely convinced this isn't a bug, if it isn't then its an issue with the scroll http://developer.anscamobile.com/code/scroll-content

It might be that this code is now obsolete and as been replaced. Hopefully get chance to reseach this over the weekend and implement it.

I need to get it fixed as it's stopping me from getting googly face on the amazon market.