scene.m 의 init function에 아래와 같이 구현

-(id) init
{
  if ((self = [super init]))
  {
    self.isTouchEnabled = YES;

    // 스테이지 구성 - 배경 
    id sceneStep_01 = [CCCallFuncN actionWithTarget:self selector:@selector(makeStage:)];  
    // 스테이지 구성 - 아군...
// integer 
int i = -123;
NSLog(@"%d : abs value : %d", i, abs(i));

// float
float f = -0.123f;
NSLog(@"%f : abs value : %f", f, fabsf(i));
-(BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
  UITouch *myTouch = [touches anyObject];
  CGPoint location = [myTouch locationInView:[myTouch view]];
  location = [[CCDirector sharedDirector] convertToGL:location];

  for( UITou...
- (void) flipReveal : (CCNode *) node
{
  float d = 1.0; // duration
  CCEaseExponentialIn *flipHalf = [CCEaseExponentialIn 
    actionWithAction:[CCActionTween actionWithDuration:d key:@"scaleX" from:-1.0 to:0.0]
  ];
  CCCallFuncN *showSp...
  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...