//
//  Player.m
//  Caterpillar
//
//  Created by Brandon Trebitowski on 11/13/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "Player.h"
#import "GameLayer.h"

@implementation Player

@synthesize score = _score;
@synthesize lives = _lives;

- (id)initWithGameLayer:(GameLayer *)layer {
    if(self = [super initWithGameLayer:layer]) {
        self.sprite = [CCSprite spriteWithSpriteFrameName:@"player.png"];
        [self.gameLayer.spritesBatchNode addChild:self.sprite];
    }
    return self;
}

@end

