Chapter 5. Animating Our Game

We're off to a great start in our mobile game development journey. We have already gone through a great deal of programming, from game logic to displaying objects on screen. One of the most powerful things about the Corona SDK is that any display object can be animated. This is a testament to the flexible graphics model that Corona offers.

Animation adds a lot of character to the user experience in a game. This is accomplished by generating a sequence of frames that evolve smoothly from frame to frame. We'll be learning this skill and applying it to the new game that we're going to create.

In this chapter, we will:

Let's animate!

This section involves creating our second game called Panda Star Catcher. The main character is a panda named Ling Ling, who needs to be launched toward the skies and catch as many stars as possible before the timer runs out. The panda will be animated and have separate movements for every course of action that is applied, such as during the setup before launch and while it's in the air. The slingshot mechanics will also be applied to launch Ling Ling into the air. You might have seen similar features in games such as Angry Birds and Crush the Castle.