diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-07-30 11:19:14 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-07-30 11:19:14 -0400 |
commit | 9cd57b731ab1c666d4a1cb725538fdc137763d12 (patch) | |
tree | 5bac45ae5157a1cb10c6e45500cbf72789917980 /Classes/GameConfig.h | |
download | cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2 cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip |
Initial commit (version 0.2.1)
Diffstat (limited to 'Classes/GameConfig.h')
-rwxr-xr-x | Classes/GameConfig.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Classes/GameConfig.h b/Classes/GameConfig.h new file mode 100755 index 0000000..1dd3e99 --- /dev/null +++ b/Classes/GameConfig.h | |||
@@ -0,0 +1,45 @@ | |||
1 | // | ||
2 | // GameConfig.h | ||
3 | // Cart Collect | ||
4 | // | ||
5 | // Created by iD Student Account on 7/18/11. | ||
6 | // Copyright __MyCompanyName__ 2011. All rights reserved. | ||
7 | // | ||
8 | |||
9 | #ifndef __GAME_CONFIG_H | ||
10 | #define __GAME_CONFIG_H | ||
11 | |||
12 | // | ||
13 | // Supported Autorotations: | ||
14 | // None, | ||
15 | // UIViewController, | ||
16 | // CCDirector | ||
17 | // | ||
18 | #define kGameAutorotationNone 0 | ||
19 | #define kGameAutorotationCCDirector 1 | ||
20 | #define kGameAutorotationUIViewController 2 | ||
21 | |||
22 | // | ||
23 | // Define here the type of autorotation that you want for your game | ||
24 | // | ||
25 | |||
26 | // 3rd generation and newer devices: Rotate using UIViewController. Rotation should be supported on iPad apps. | ||
27 | // TIP: | ||
28 | // To improve the performance, you should set this value to "kGameAutorotationNone" or "kGameAutorotationCCDirector" | ||
29 | #if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR | ||
30 | #define GAME_AUTOROTATION kGameAutorotationUIViewController | ||
31 | |||
32 | // ARMv6 (1st and 2nd generation devices): Don't rotate. It is very expensive | ||
33 | #elif __arm__ | ||
34 | #define GAME_AUTOROTATION kGameAutorotationNone | ||
35 | |||
36 | |||
37 | // Ignore this value on Mac | ||
38 | #elif defined(__MAC_OS_X_VERSION_MAX_ALLOWED) | ||
39 | |||
40 | #else | ||
41 | #error(unknown architecture) | ||
42 | #endif | ||
43 | |||
44 | #endif // __GAME_CONFIG_H | ||
45 | |||