// // ScoreBarLayer.m // Cartographic // // Created by Starla Insigna on 1/4/13. // Copyright 2013 __MyCompanyName__. All rights reserved. // #import "ScoreBarLayer.h" @implementation ScoreBarLayer + (ScoreBarLayer*)scoreBar { return [[[ScoreBarLayer alloc] init] autorelease]; } - (id)init { self = [super initWithColor:ccc4(101, 214, 253, 255) fadingTo:ccc4(0, 104, 248, 255)]; if (nil != self) { [self changeWidth:480 height:40]; self.position = ccp(0, 280); } return self; } - (void)draw { [super draw]; glEnable(GL_LINE_SMOOTH); glColor4ub(0, 0, 0, 255); ccDrawLine(ccp(0,0), ccp(480,0)); } @end