For those who need the presentation slide decks and/or code from my Mobile Gaming: Corona SDK and Adobe AIR work shop and/or the Refactoring presentation, they can be found on my Github project for them.
Blog
-
RIA Unleashed 2011
Just wanted to give a post mortem on RIA Unleashed 2011, a conference up in Boston run by the FITC crew. Specifically I wanted to mention some thoughts on gaming, JavaScript, and leadership.
I’m glad I went to RIA Unleashed this year. First year run by the FITC crew who always have their act together. I always like the crowd in Boston. This year was different for a few reasons.
-
Using Flash to Skin Flex Components
I’ll add more later… busy…
-
Lua Classes and Packages in Corona
Lua has some diverse usage, from AI, robotics, 3D shaders, game extensions, or writing games. As such there are a variety of ways to do OOP in Corona. Specifically:
- Classes
- Packages
- Access Modifiers/Namespaces/Encapsulation
- Inheritance
- Polymorphism
- “dealing” with scope
Below, I’ll show you how I do classes and packages in Corona SDK. I cover how to extend core Corona classes, what you can/can’t do, and how to implement classes, packages, & inheritance in Lua. I also briefly cover some of the OOP alternatives and compare/contrast why I chose t3h closure way.
I do not cover, nor use metatables. If you can live without prototype in JavaScript, you’ll do just fine using only closures in Lua. I’ll give you some links at the bottom for using metatables to accomplish OOP in Lua.