Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Gideros Mobile Game Development

You're reading from  Gideros Mobile Game Development

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781849696708
Pages 154 pages
Edition 1st Edition
Languages
Author (1):
Arturs Sosins Arturs Sosins
Profile icon Arturs Sosins

Table of Contents (12) Chapters

Gideros Mobile Game Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up the Environment 2. Managing Scenes and Gideros OOP 3. Implementing Game Logic 4. Polishing the Game Index

Managing packs and levels


Now that we have finished the prototype of our game and see that it works, let's implement the pack and level logic, as well as player progression between levels.

This is the part where you take your game out of prototype state and gamify it with more engagement loops and sense of progression, and make it into something you could show to others. I usually start to bother my friends with trying the new game after implementing the simple tutorial level pack.

Defining packs

First let's create a simple file, where we would define our packs and the number of levels in them. So head to your Gideros Studio and add a packs.lua file to your project. Inside it we will define a simple packs table which would contain subtables, representing each pack with name of the pack, and the number of levels in it.

packs = {
  {
    name = "First pack",
    levels = 15
  },
  {
    name = "Second pack",
    levels = 15
  },
}

Now based on this definition, we can create a scene, where we can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}