Images
Now we’re ready to draw basic shapes. We’re going to learn how to display images like backgrounds, grounds, and crates. Then we’ll create and display sprites.
An image is a picture, and most of the time contained in a file called a jpeg or a png. A sprite is one or several animated sequences of images. It is used in video games to display characters, animations, and so on. The main advantage of sprites is that all the images can be gathered in one big picture called the image sheet. There’s a lot to learn here, but it’s fun!
What Is an Image?
At the beginning of this chapter, I mentioned jpeg and png. How are they different? You just have to remember this:
- a jpeg is a rectangular picture, With no transparent parts.
- a png is a picture ...
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.