-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hiding controls on first step of tutorial. Showing text
- Loading branch information
Showing
44 changed files
with
565 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
all: sprites | ||
all: install | ||
|
||
sprites: | ||
cd WizardWar && bash images/packTextures.sh | ||
cd WizardWar && bash images/packTextures.sh | ||
|
||
install: sprites | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ChatBubbleSprite.h | ||
// WizardWar | ||
// | ||
// Created by Sean Hess on 8/24/13. | ||
// Copyright (c) 2013 Orbital Labs. All rights reserved. | ||
// | ||
|
||
#import "CCSprite.h" | ||
|
||
@interface ChatBubbleSprite : CCSprite | ||
@property (nonatomic, strong) NSString * message; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// ChatBubbleSprite.m | ||
// WizardWar | ||
// | ||
// Created by Sean Hess on 8/24/13. | ||
// Copyright (c) 2013 Orbital Labs. All rights reserved. | ||
// | ||
|
||
#import "ChatBubbleSprite.h" | ||
#import "cocos2d.h" | ||
#import "AppStyle.h" | ||
|
||
@interface ChatBubbleSprite () | ||
@property (nonatomic, strong) CCSprite * background; | ||
@property (nonatomic, strong) CCLabelTTF * label; | ||
@end | ||
|
||
|
||
@implementation ChatBubbleSprite | ||
|
||
-(id)init { | ||
if ((self = [super init])) { | ||
self.background = [CCSprite spriteWithSpriteFrameName:@"chat-bubble.png"]; | ||
self.background.scale = 0.5; | ||
[self addChild:self.background]; | ||
|
||
self.label = [CCLabelTTF labelWithString:@"hello" fontName:FONT_LOVEYA fontSize:12.0]; | ||
self.label.color = ccc3(0, 0, 0); | ||
[self addChild:self.label]; | ||
} | ||
return self; | ||
} | ||
|
||
-(void)setMessage:(NSString *)message { | ||
_message = message; | ||
if (!message) message = @""; | ||
[self.label setString:message]; | ||
} | ||
|
||
-(void)setFlipX:(BOOL)flipX { | ||
self.background.flipX = flipX; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// RACHelpers.h | ||
// WizardWar | ||
// | ||
// Created by Sean Hess on 8/24/13. | ||
// Copyright (c) 2013 Orbital Labs. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
#define RACMapExists ^id(id value) { return @(value != nil); } | ||
#define RACFilterExists ^BOOL(id value) { return value != nil; } | ||
|
||
#define RACMapNot ^id(NSNumber* value) { return @(!value.intValue); } | ||
|
||
|
||
@interface RACHelpers : NSObject | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// RACHelpers.m | ||
// WizardWar | ||
// | ||
// Created by Sean Hess on 8/24/13. | ||
// Copyright (c) 2013 Orbital Labs. All rights reserved. | ||
// | ||
|
||
#import "RACHelpers.h" | ||
|
||
@implementation RACHelpers | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.