O'Reilly logo

Corona SDK HOTSHOT by Nevin Flanagan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining a chapter

The goal of this project has been loading content automatically and handling multi-part areas, so it's important to include features like quest definitions and to specify which area in a chapter the player will begin in.

Getting ready

Create a file in the chapter/1 folder of the project directory, contents, and open it in a text editor.

Getting on with it

This chapter is simple and needs only two pieces of information.

Specifying a chapter's beginning and end

On the first line of the chapter content file, specify the chapter start:

start:

The chapter will begin in the desert_camp map, on a square next to the tent decoration:

start:  desert_camp  8,6

On the next line, we'll detail the chapter's goal: the collection of eight coin objects: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required