Skip to content

Commit 2c40e34

Browse files
committed
Changed the demo to use cocoapods for cocos2d.
1 parent de2c95d commit 2c40e34

File tree

241 files changed

+184
-55063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+184
-55063
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ Thumbs.db
2121
*.orig
2222
*.xccheckout
2323
doxygen.config
24+
Pods
25+
Podfile.lock

ObjectAL.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ObjectAL/ObjectAL.xcodeproj/project.pbxproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
children = (
361361
CBBAB316171D0B84009B955F /* Supporting Files */,
362362
);
363-
path = "iOS";
363+
path = iOS;
364364
sourceTree = "<group>";
365365
};
366366
CBBAB316171D0B84009B955F /* Supporting Files */ = {
@@ -386,7 +386,7 @@
386386
children = (
387387
CBBAB345171D0BC4009B955F /* Supporting Files */,
388388
);
389-
path = "OSX";
389+
path = OSX;
390390
sourceTree = "<group>";
391391
};
392392
CBBAB345171D0BC4009B955F /* Supporting Files */ = {
@@ -893,7 +893,10 @@
893893
DSTROOT = /tmp/ObjectAL__iOS_.dst;
894894
GCC_PRECOMPILE_PREFIX_HEADER = YES;
895895
GCC_PREFIX_HEADER = "iOS/ObjectAL (iOS)-Prefix.pch";
896-
OTHER_LDFLAGS = "-ObjC";
896+
OTHER_LDFLAGS = (
897+
"$(inherited)",
898+
"-ObjC",
899+
);
897900
PRODUCT_NAME = ObjectAL;
898901
PUBLIC_HEADERS_FOLDER_PATH = "include/$(PRODUCT_NAME)";
899902
SKIP_INSTALL = YES;
@@ -906,7 +909,10 @@
906909
DSTROOT = /tmp/ObjectAL__iOS_.dst;
907910
GCC_PRECOMPILE_PREFIX_HEADER = YES;
908911
GCC_PREFIX_HEADER = "iOS/ObjectAL (iOS)-Prefix.pch";
909-
OTHER_LDFLAGS = "-ObjC";
912+
OTHER_LDFLAGS = (
913+
"$(inherited)",
914+
"-ObjC",
915+
);
910916
PRODUCT_NAME = ObjectAL;
911917
PUBLIC_HEADERS_FOLDER_PATH = "include/$(PRODUCT_NAME)";
912918
SKIP_INSTALL = YES;

ObjectALDemo/OALDemo (OSX)/main.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import <Cocoa/Cocoa.h>
1010

11-
#import "cocos2d.h"
11+
#import <cocos2d/cocos2d.h>
1212

1313
int main(int argc, char *argv[])
1414
{

ObjectALDemo/OALDemo (iOS)/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright Karl Stenerud 2013. All rights reserved.
77
//
88

9-
#import "cocos2d.h"
9+
#import <cocos2d/cocos2d.h>
1010

1111
#import "AppDelegate.h"
1212
#import "IntroLayer.h"

ObjectALDemo/OALDemo (iOS)/Demos/SourceNotificationsDemo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#import "ImageButton.h"
1212
#import "MainLayer.h"
1313
#import "CCLayer+Scene.h"
14-
#import <ObjectAL/OALTools.h>
14+
#import <ObjectAL/Support/OALTools.h>
1515

1616
#define MAX_RANDOM_REPEATS 2
1717

ObjectALDemo/OALDemo (iOS)/IntroLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
// When you import this file, you import all the cocos2d classes
11-
#import "cocos2d.h"
11+
#import <cocos2d/cocos2d.h>
1212

1313
// HelloWorldLayer
1414
@interface IntroLayer : CCLayer

ObjectALDemo/OALDemo (iOS)/Support/CCNode+ContentSize.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ - (void) setContentSizeFromChildren
1717
float maxX = -1000000;
1818
float maxY = -1000000;
1919

20-
for(CCNode* node in children_)
20+
for(CCNode* node in _children)
2121
{
2222
float nextMinX = node.position.x - node.contentSize.width * node.scaleX * node.anchorPoint.x;
2323
float nextMaxX = nextMinX + node.contentSize.width * node.scaleX;
@@ -49,7 +49,7 @@ - (CGSize) minimalDimensionsForChildren
4949
{
5050
CGSize size = CGSizeMake(0, 0);
5151

52-
for(CCNode* node in children_)
52+
for(CCNode* node in _children)
5353
{
5454
if(node.contentSize.width * node.scaleX > size.width)
5555
{

ObjectALDemo/OALDemo (iOS)/Support/CallFuncWithObject.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ -(void) execute
6262
{
6363
if(twoObjects)
6464
{
65-
[targetCallback_ performSelector:selector_ withObject:object withObject:object2];
65+
[_targetCallback performSelector:_selector withObject:object withObject:object2];
6666
}
6767
else
6868
{
69-
[targetCallback_ performSelector:selector_ withObject:object];
69+
[_targetCallback performSelector:_selector withObject:object];
7070
}
7171
}
7272

ObjectALDemo/OALDemo (iOS)/Support/TouchableNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
@interface TouchableNode : CCNode
1414
#ifdef __CC_PLATFORM_IOS
15-
<CCStandardTouchDelegate, CCTargetedTouchDelegate>
15+
<CCTouchOneByOneDelegate, CCTouchAllAtOnceDelegate>
1616
#elif defined(__CC_PLATFORM_MAC)
1717
<CCKeyboardEventDelegate, CCMouseEventDelegate, CCTouchEventDelegate>
1818
#endif

0 commit comments

Comments
 (0)