Category: Tutorials, Tips and Demos

Tutorial: Handling Cross-Scene Audio

In most apps, certain audio files are needed throughout the app while other audio files are only required in a specific scene. You may also encounter an instance where a particular audio file is loaded in one scene but “overlaps” into another scene, which can complicate the cleanup process. Today’s tutorial discusses how to overcome both of these scenarios with the use of a sound management module.

READ MORE

Tutorial: Goodbye Globals!

In Lua, global variables are risky. We’ve been stressing the “avoid globals” stance for a long time, and today’s tutorial shows you how. In addition, we illustrate the dangers and pitfalls of using global variables without a thorough knowledge of how Lua handles them.

READ MORE

New System Info Properties

This week’s brief tutorial discusses some new properties that are available to Corona Pro users since Build 1086. In specific, Android users can now get the physical screen DPI and size of various devices, and iOS users have some new API properties related to Apple’s move away from UDID. Read further to learn more.

READ MORE

Tutorial: Lua string magic

Today’s tutorial features Lua string manipulation and parsing techniques which can be useful in several applications, especially business or database-powered apps where you need to check and confirm that text is formatted properly. Read further to learn about these string-related helper functions.

READ MORE

Tutorial: Radial Gravity and Predicting Trajectory

Today’s tutorial features two more physics methods. In specific, we’ll discuss “radial gravity” and how to visually predict the launch trajectory of an object. Better yet, both methods are available as downloadable projects so you can explore the full implementation at the code level. Read on to learn more!

READ MORE

Tutorial: “Android-izing” a Mobile App

For some multi-platform developers, building for Android is planned from the beginning but it’s not fully implemented until after the launch of the iOS version. However, there are several things that should be done while building a cross-platform app to make sure that Android’s unique functionality is handled in advance of submission to the marketplace.

READ MORE