summary refs log tree commit diff stats
path: root/Classes/ScoreBarLayer.m
blob: b838ac9130fa6bdcae74408c7111bc3e0def3f8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  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