Skip to content

Commit 4e41b1d

Browse files
committed
Merge remote-tracking branch 'cocos/develop' into CCDirector/ResponderRefactoring
Conflicts: cocos2d-tests.xcodeproj/project.pbxproj
2 parents adfdd1f + 79dbd3f commit 4e41b1d

Some content is hidden

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

69 files changed

+1323
-797
lines changed

API-Index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
This is the Cocos2D-Swift Objective-C Class Reference.<br/>
2-
To learn Cocos2D/SpriteBuilder please read the [**Developer Guide**](http://makegameswith.us/docs/).
2+
To learn Cocos2D/SpriteBuilder please read the [**Developer Guide**](http://makeschool.com/docs/).

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ People and companies, who have contributed, in alphabetical order.
5757
Thanks to Wangsheng, Shintaro Kaneko, frranck and Yannick Loriot, Magician, masanorythm, Jogn Vu for various minor contributions.
5858
Also thanks to all those who contributed on git, helped us testing, and took part in the discussions even if their suggestions didn't make it to release.
5959

60-
Special thanks to Ben-G from makegameswith.us, for making several outstanding V3 tutorials
60+
Special thanks to Ben-G (Benjamin Encz) from makeschool.com, for making several outstanding V3 tutorials
6161

6262
cocos2d for iPhone 2.1 authors
6363
------------------------------

Android/AppActivity.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* SpriteBuilder: http://www.spritebuilder.org
3+
*
4+
* Copyright (c) 2014 Apportable Inc.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
26+
#import "CCActivity.h"
27+
28+
BRIDGE_CLASS("com.apportable.GLActivity")
29+
@interface PROJECTIDENTIFIERActivity : CCActivity
30+
31+
@end

Android/AppActivity.m

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* SpriteBuilder: http://www.spritebuilder.org
3+
*
4+
* Copyright (c) 2014 Apportable Inc.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
26+
#import "PROJECTIDENTIFIERActivity.h"
27+
#import "PROJECTIDENTIFIERController.h"
28+
29+
#import <AndroidKit/AndroidKeyEvent.h>
30+
31+
@implementation PROJECTIDENTIFIERActivity
32+
33+
34+
- (BOOL)onKeyUp:(int32_t)keyCode keyEvent:(AndroidKeyEvent *)event
35+
{
36+
if (keyCode == AndroidKeyEventKeycodeBack)
37+
{
38+
[self finish];
39+
}
40+
return NO;
41+
}
42+
43+
- (void)run
44+
{
45+
[super run];
46+
47+
[PROJECTIDENTIFIERController setupApplication];
48+
}
49+
50+
@end

Mac/AppDelegate.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#import <Cocoa/Cocoa.h>
2+
3+
@interface AppDelegate : NSObject <NSApplicationDelegate>
4+
5+
@end
6+

Mac/AppDelegate.m

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#import "AppDelegate.h"
2+
#import "CCPackageManager.h"
3+
#import "CCDirector_Private.h"
4+
#import "AppController.h"
5+
6+
@interface AppDelegate ()
7+
8+
@property (weak) IBOutlet NSWindow *window;
9+
@property (weak) IBOutlet CC_VIEW<CCView> *glView;
10+
@end
11+
12+
@implementation AppDelegate
13+
14+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
15+
{
16+
AppController *controller = [AppController sharedController];
17+
controller.window = _window;
18+
controller.glView = _glView;
19+
[controller setupApplication];
20+
return;
21+
}
22+
23+
- (void)applicationWillTerminate:(NSNotification *)aNotification
24+
{
25+
[[CCPackageManager sharedManager] savePackages];
26+
}
27+
28+
@end

Mac/main.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright (c) 2015 Apportable. All rights reserved.
2+
3+
#import <Cocoa/Cocoa.h>
4+
5+
int main(int argc, const char * argv[]) {
6+
return NSApplicationMain(argc, argv);
7+
}

Resources/Images/powered_normals.png

34.6 KB
Loading

UnitTests/CCActionTest.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ - (void)testCopyActionClearsState
323323
XCTAssertEqualWithAccuracy(actionCopy.elapsed, 0.0f, accuracy, @"Elapsed time was not reset.");
324324
XCTAssertEqualWithAccuracy(actionCopy.duration, 1.0f, accuracy, @"Duration should have been copied.");
325325
XCTAssertNil(actionCopy.target, @"Target not reset");
326-
XCTAssertNil(actionCopy.originalTarget, @"originalTarget not reset");
327326
}
328327

329328
- (void)testCopyActionClearsStateForCompletedActions
@@ -340,7 +339,6 @@ - (void)testCopyActionClearsStateForCompletedActions
340339
XCTAssertEqualWithAccuracy(actionCopy.elapsed, 0.0f, accuracy, @"Elapsed time was not reset.");
341340
XCTAssertEqualWithAccuracy(actionCopy.duration, 1.0f, accuracy, @"Duration should have been copied.");
342341
XCTAssertNil(actionCopy.target, @"Target not reset");
343-
XCTAssertNil(actionCopy.originalTarget, @"originalTarget not reset");
344342
}
345343

346344

UnitTests/CCTextureTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ - (void)setUp
1515
{
1616
[super setUp];
1717

18-
[(AppController *)[UIApplication sharedApplication].delegate configureCocos2d];
18+
// [(AppController *)[UIApplication sharedApplication].delegate configureCocos2d];
1919
}
2020

2121
-(void)testTextureCache

0 commit comments

Comments
 (0)