Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By : Michelle M Fernandez
Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By: Michelle M Fernandez

Overview of this book

Table of Contents (19 chapters)
Corona SDK Mobile Game Development Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Data saving


Saving file information is used in many aspects of game development. We use it to save high scores and game settings, such as sound on/off, locking/unlocking levels, and so on. It is not necessary to have these features, but as they are good to have, maybe you'd like to include them in your applications.

In Corona SDK, applications are sandboxed; this means that your files (application images, data, and preferences) are stored in a location that no other application can access. Your files will reside in an app-specific directory for documents, resources, or temporary files. This restriction is related to the files on your device, not when you are coding on your Mac or PC.

BeebeGames class for saving and loading values

We'll be using the BeebeGames class created by Jonathan Beebe. It provides many easy and useful functions to use for games. Some of the notable functions included incorporate a simple way of saving and loading data that we'll be able add into our game. More documentation...