Hi everyone
I am just built a game with 8 levels. Each level has different information about target damage, total damage, and money. I will print these on the screen but first of all I need to store it somewhere and get the right level out. I think I should make an array. But I am not sure how to do it, i am not quite familiar with array in objectiveC. Could you guys show me how.? really thank you. I think I should create a class called Levels: NSObject. And in the class GameControlLayer I will need to write a method called initWithLevel. This all I can think of. ( I using Cocos2D for this game)
@interface Levels : NSObject {
float targetDamage;
float totalDamage;
int initMoney;
int unSpentMoney;
float totalDamage;
}
@property (assign) float targetDamage;
@property (assign) float totalDamage;
@property (assign) int initMoney;
@property (assign) int unSpentMoney;
@property (assign) float totalDamage;
@end