Category: Tutorials, Tips and Demos

Tutorial: Tap/Touch Anatomy

Most Corona developers understand the concept behind tap and touch events, but the lines get a little blurry when dealing with more complex scenarios, for example overlapping objects with different types of event listeners. Today’s tutorial explains exactly how Corona handles these events and which events are broadcast to which objects.

READ MORE

Tutorial: Game controllers and axes

In a previous tutorial about HID controllers, we showed you how to read button inputs from game controllers. In contrast to basic button functionality, analog controls are more complex because they measure an almost infinite number of potential values that must be converted from the analog “infinity” to discrete digital values. Today’s tutorial walks you through the process.

READ MORE

Tutorial: Modernizing the config.lua

In this week’s tutorial, we revisit the concepts behind the “config.lua” file, with the specific aim of modernizing it for current standards. At the same time, we discuss how to simplify the config file and make the content area easier to work with. Read further to learn more.

READ MORE

Tutorial: Non-physics collision detection

Corona SDK has a robust physics-based collision detection system, but it requires some extra processing behind that scenes that you typically don’t need if you’re not using physics for other purposes. Today’s tutorial explains how to detect collisions between two circles or two rectangles without using the physics engine.

READ MORE

Tutorial: Stylizing Widgets, Part 1

This week’s tutorial discusses how to visually stylize widgets. Although widgets will adopt the OS-like appearance by default, in many cases you’ll want to customize the appearance to suit the style of your app. In this part of the series (1), learn how to properly style the button, table view, stepper, and spinner widgets.

READ MORE