Hi I have a game where each level can be obtained maximum 3 stars, I have a select level 15 missions.
I have a meter to tell how many stars have earned at all levels. For example 5/45 stars.
I have a global variable: stars
As I can do this?
http://www.androidtapp.com/wp-content/u ... select.png
bottom left 7/90
top right - 26
Develop games in your browser. Powerful, performant & highly capable.
use a 2d array
position 0,1 = level 1
position 0,2 = level 2
When you collect a star on a level add a value of 1 to the corrisponding array position and to get the total amount throughout all levels just add up all the array values and set your global variable to it.