Reader small image

You're reading from  Gideros Mobile Game Development

Product typeBook
Published inNov 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781849696708
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Arturs Sosins
Arturs Sosins
author image
Arturs Sosins

Arturs Sosins is a developer living with his wife Anna and son Tomass. He has a Master's degree in Computer Science and even though he is working as a developer full time, he still loves coding and shares his knowledge with others in his spare time. In his last years at the university, he started chasing the dream of creating his own mobile games for fun and personal satisfaction in his spare time. After trying out lots of different cross-platform frameworks for mobile game development, he found Gideros SDK in January 2012 and liked it so much that he decided to stick with it when developing his games. In the summer of 2012, he founded a group of like-minded developers/designers who go under the indie label Jenots.com (http://jenots.com/). They released Mashballs (http://jenots.com/mashballs), their first game, in September 2012 and are currently working on a couple of bigger game projects. As there was a lack of learning materials and tutorials for Gideros and writing was one of the his favorite hobbies, he started creating different tutorials on how to accomplish simple things in Gideros. This led him to create his new blog http://appcodingeasy.com. Due to popularity of his tutorials and the support he provided on the Gideros community forum, he became the most active community member. In February 2013, the Gideros team offered him the position in the Gideros developers' team, where he has been working since then, while continuing to work on games in his spare time.
Read more about Arturs Sosins

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Gideros Mobile Game Development
Published in: Nov 2013Publisher: PacktISBN-13: 9781849696708

Author (1)

author image
Arturs Sosins

Arturs Sosins is a developer living with his wife Anna and son Tomass. He has a Master's degree in Computer Science and even though he is working as a developer full time, he still loves coding and shares his knowledge with others in his spare time. In his last years at the university, he started chasing the dream of creating his own mobile games for fun and personal satisfaction in his spare time. After trying out lots of different cross-platform frameworks for mobile game development, he found Gideros SDK in January 2012 and liked it so much that he decided to stick with it when developing his games. In the summer of 2012, he founded a group of like-minded developers/designers who go under the indie label Jenots.com (http://jenots.com/). They released Mashballs (http://jenots.com/mashballs), their first game, in September 2012 and are currently working on a couple of bigger game projects. As there was a lack of learning materials and tutorials for Gideros and writing was one of the his favorite hobbies, he started creating different tutorials on how to accomplish simple things in Gideros. This led him to create his new blog http://appcodingeasy.com. Due to popularity of his tutorials and the support he provided on the Gideros community forum, he became the most active community member. In February 2013, the Gideros team offered him the position in the Gideros developers' team, where he has been working since then, while continuing to work on games in his spare time.
Read more about Arturs Sosins