Skip to content

Commit f6e5e46

Browse files
author
jeffgaogao
committed
docs(TcgSdk): add TcrDemo
1 parent 3de4d17 commit f6e5e46

File tree

70 files changed

+4844
-0
lines changed

Some content is hidden

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

70 files changed

+4844
-0
lines changed

Demo/TCRDemo/Podfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
platform :ios,'12.0'
2+
project './TCRDemo.xcodeproj'
3+
target 'TCRDemo' do
4+
# Comment the next line if you don't want to use dynamic frameworks
5+
use_frameworks!
6+
pod 'TCRSDK', :git => "https://github.com/tencentyun/cloudgame-ios-sdk.git"
7+
end

Demo/TCRDemo/TCGDemo/AppDelegate.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AppDelegate.h
3+
// TCGDemo
4+
//
5+
// Created by LyleYu on 2020/12/17.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
11+
12+
@property (strong, nonatomic) UIWindow *window;
13+
14+
@end
15+

Demo/TCRDemo/TCGDemo/AppDelegate.m

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
//
2+
// AppDelegate.m
3+
// TCGDemo
4+
//
5+
// Created by LyleYu on 2020/12/17.
6+
//
7+
8+
#import "AppDelegate.h"
9+
#import <TCRSDK/TCRSDK.h>
10+
11+
#define Experience
12+
#ifdef Experience
13+
#import "TCGDemoExperienceVC.h"
14+
#else
15+
#import "TCGDemoGameListVC.h"
16+
#endif
17+
18+
@interface AppDelegate ()
19+
20+
@end
21+
22+
@implementation AppDelegate
23+
24+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
25+
// Override point for customization after application launch.
26+
27+
[self normalGameTest];
28+
29+
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
30+
31+
return YES;
32+
}
33+
34+
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
35+
return UIInterfaceOrientationMaskAll;
36+
}
37+
38+
- (void)normalGameTest {
39+
CGRect frame = [[UIScreen mainScreen] bounds];
40+
self.window = [[UIWindow alloc] initWithFrame:frame];
41+
#ifdef Experience
42+
TCGDemoExperienceVC *vc = [[TCGDemoExperienceVC alloc] init];
43+
#else
44+
TCGDemoGameListVC *vc = [[TCGDemoGameListVC alloc] init];
45+
#endif
46+
self.window.rootViewController = vc;
47+
}
48+
49+
@end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"scale" : "2x",
6+
"size" : "20x20"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"scale" : "3x",
11+
"size" : "20x20"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"scale" : "2x",
16+
"size" : "29x29"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"scale" : "3x",
21+
"size" : "29x29"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"scale" : "2x",
26+
"size" : "40x40"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"filename" : "icon.png",
35+
"idiom" : "iphone",
36+
"scale" : "2x",
37+
"size" : "60x60"
38+
},
39+
{
40+
"idiom" : "iphone",
41+
"scale" : "3x",
42+
"size" : "60x60"
43+
},
44+
{
45+
"idiom" : "ipad",
46+
"scale" : "1x",
47+
"size" : "20x20"
48+
},
49+
{
50+
"idiom" : "ipad",
51+
"scale" : "2x",
52+
"size" : "20x20"
53+
},
54+
{
55+
"idiom" : "ipad",
56+
"scale" : "1x",
57+
"size" : "29x29"
58+
},
59+
{
60+
"idiom" : "ipad",
61+
"scale" : "2x",
62+
"size" : "29x29"
63+
},
64+
{
65+
"idiom" : "ipad",
66+
"scale" : "1x",
67+
"size" : "40x40"
68+
},
69+
{
70+
"idiom" : "ipad",
71+
"scale" : "2x",
72+
"size" : "40x40"
73+
},
74+
{
75+
"idiom" : "ipad",
76+
"scale" : "1x",
77+
"size" : "76x76"
78+
},
79+
{
80+
"idiom" : "ipad",
81+
"scale" : "2x",
82+
"size" : "76x76"
83+
},
84+
{
85+
"idiom" : "ipad",
86+
"scale" : "2x",
87+
"size" : "83.5x83.5"
88+
},
89+
{
90+
"idiom" : "ios-marketing",
91+
"scale" : "1x",
92+
"size" : "1024x1024"
93+
}
94+
],
95+
"info" : {
96+
"author" : "xcode",
97+
"version" : 1
98+
}
99+
}
3.47 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"filename" : "advance_mode.png",
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
660 Bytes
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"filename" : "cursor.png",
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

0 commit comments

Comments
 (0)