Warning: mysql_get_server_info(): No such file or directory in /home/mziray/mikeziray.com/blog/wp-content/plugins/xml-google-maps/xmlgooglemaps_dbfunctions.php on line 10
Warning: mysql_get_server_info(): A link to the server could not be established in /home/mziray/mikeziray.com/blog/wp-content/plugins/xml-google-maps/xmlgooglemaps_dbfunctions.php on line 10
This is a template I threw together for the Corona SDK from Ansca Mobile. Since Lua is not a language most people are familiar with, I figured I’d throw together some sample code for Corona and share what I learned so far with the rest of the Corona SDK community by including the template here.
The template includes example code for:
- Display groups
- Orientation and accelerometer
- Touch with buttons
- File reading
- Example level file for scripting game play
The template separates functionality into modules for an object oriented approach. I’m still learning the techniques for Lua, so if you notice a better way to do it, please don’t hesitate to let me know in the comments below. Some things in the template are not the best way to accomplish some things, but should give people a good idea on best practices of software design. This will also with work Corona’s Game Edition.
If you find the template useful, take a look at some of our current applications to support us. It’d mean a lot.
Also, check out the links on the side. Thanks!