Chapter 4. Creating a Puzzle App

In the previous chapter, we discussed how to use Corona's feature set to create our first business app. Although developing business style apps can be the cornerstone of your company, they can get a little boring. Inside this chapter, we will learn how to create our very first game with Corona SDK. Here are the topics that we will be covering in this chapter:

  • How to drag-and-drop images
  • Understanding events
  • Using display groups
  • Using the scroll view widget
  • Using loops efficiently

Let's get started!

Since we've already covered a lot of the basics in previous chapters, we are going to move at a faster pace so that we can jump right into the game mechanics.

A quick introduction to puzzle games

Puzzle games are a genre of video games that have been around for decades. These types of games challenge players to use logic and critical thinking to complete patterns. There is a large variety of puzzle games available, and in this chapter, we'll start by learning how to create a 3-by-3 jigsaw puzzle titled My Jigsaw Puzzle.

In My Jigsaw Puzzle, players will have to complete a jigsaw puzzle by using nine puzzle pieces. Each puzzle piece will have an image on it, and the player will have to match the puzzle piece to the puzzle board by dragging the pieces from right to left. When the puzzle piece matches the correct location, the game will lock in the piece. Let's take a look at the final game product.

A quick introduction to puzzle games

Downloading the starter kit

Before creating our puzzle app, you can get the starter kit for the jigsaw puzzle from the code files available with this book. The starter kit includes all of the graphics that we will be using in this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.61.246