Skip to content

Commit aaec87c

Browse files
committed
Template updates
1 parent f623910 commit aaec87c

File tree

5 files changed

+36
-7
lines changed

5 files changed

+36
-7
lines changed

templates/cocos2d iOS.xctemplate/Classes/AppDelegate.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
// -----------------------------------------------------------------
1212

1313
#import "AppDelegate.h"
14-
#import "loadScene.h"
15-
#import "mainScene.h"
14+
#import "HelloWorldScene.h"
1615

1716
// -----------------------------------------------------------------------
1817

@@ -78,7 +77,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
7877

7978
- (CCScene *)startScene
8079
{
81-
return [loadScene new];
80+
return [HelloWorldScene new];
8281
}
8382

8483
// -----------------------------------------------------------------------

templates/cocos2d iOS.xctemplate/Classes/HelloWorldScene.h

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

1717
// -----------------------------------------------------------------------
1818

19-
@interface loadScene : CCScene
19+
@interface HelloWorldScene : CCScene
2020

2121
// -----------------------------------------------------------------------
2222

templates/cocos2d iOS.xctemplate/Classes/HelloWorldScene.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
//
1111
// -----------------------------------------------------------------
1212

13-
#import "loadScene.h"
14-
#import "mainScene.h"
13+
#import "HelloWorldScene.h"
1514

1615
// -----------------------------------------------------------------------
1716

18-
@implementation loadScene
17+
@implementation HelloWorldScene
1918

2019
// -----------------------------------------------------------------------
2120

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// Prefix header for all source files of the 'Test' target in the 'Test' project
3+
//
4+
5+
#import <Availability.h>
6+
7+
#ifndef __IPHONE_3_0
8+
#warning "This project uses features only available in iPhone SDK 3.0 and later."
9+
#endif
10+
11+
#ifdef __OBJC__
12+
#import <UIKit/UIKit.h>
13+
#import <Foundation/Foundation.h>
14+
#endif
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// main.m
3+
// cocos2d-template
4+
//
5+
// Created by Lars Birkemose on 24/06/15.
6+
// Copyright cocos2d.org 2015. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
int main(int argc, char *argv[]) {
12+
13+
@autoreleasepool {
14+
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
15+
return retVal;
16+
}
17+
}

0 commit comments

Comments
 (0)