OOP 에 아주 조금 익숙해 지고 있다
— 영혼없는인형 (@ls_pp) February 19, 2012
NSMutableArray *a = [[NSMutableArray alloc] init];
[a addObject:@"123166"];
[a addObject:@"122377"];
[a addObject:@"123188"];
[a addObject:@"123199"];
[a addObject:@"123100"];
for (NSString *ss in a)
{
NSLog(@"%@", ss);
}
N...
EnemySprite.h
#import <Foundation/Foundation.h>
#import "cocos2d.h"
@interface EnemySprite : CCSprite {
int healthpoint;
}
@property (readwrite) int hp;
@end
EnemySprite.m
#import "EnemySprite.h"
@implementation EnemySprite
@synthesi...
Grav was with by Trilby Media.