Shapes

Shapes? Let’s start With circles, lines, and rectangles.

Not so good at creating your own graphics? Using circles, lines, and rectangles is a smart and easy way to start a project without any graphics assets. You can also use circles, lines, and rectangles in your games to create great user interfaces or visual effects.

Circle

ifig0063.jpg

fig0019

We’ll color its face now. Add this line of code:

ifig0064.jpg

Rectangle

To illustrate a rectangle, let’s add a chest ...

Get Create 2D Mobile Games with Corona SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.