ABSTRACT

This chapter shows how to use Lua programming language, which is used in Corona software development kit (SDK) to display text while creating mobile games and applications. To display something on the screen people need to create display objects. Anything that appears on the screen is a display object such as a shape, an image, and a button. People can display a text anywhere on the screen with a single line of codes. The line of codes creates a text at the positions using the system font. These positions refer to the center position of the text. If people need to position their object relative to screen left, top, bottom, or right, they need to modify the anchors before creating the text object. Anchor points are used to align display objects around a particular relative point, and are specified in values between 0 and 1.