This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// Push IO Setup | |
[[PushIOManager sharedInstance] setDelegate:self]; | |
[[PushIOManager sharedInstance] didFinishLaunchingWithOptions:launchOptions]; | |
// register the types we'll be sending with Apple | |
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound)]; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Xcode | |
build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 | |
!default.perspectivev3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)drawRect:(CGRect)rect | |
{ | |
CGRect bounds = [self bounds]; | |
UIColor *color = [self isHighlighted] ? [UIColor blueColor] : [UIColor whiteColor]; | |
[color setFill]; | |
[[UIBezierPath bezierPathWithRect:bounds] fill]; | |
} | |
- (void)setHighlighted:(BOOL)highlighted; | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instead of something like this: | |
level0_obstacle1[100] = "obstacles10.png"; | |
level0_obstacle1[3700] = "obstacles10.png"; | |
level0_obstacle1_add4[3900] = "obstacles10.png"; | |
level0_obstacle1[6600] = "obstacles10.png"; | |
level0_obstacle1[10100] = "obstacles10.png"; | |
level0_obstacle1_add4[10500] = "obstacles10.png"; | |
level0_obstacle1[16000] = "obstacles10.png"; | |
level0_obstacle1[16700] = "obstacles10.png"; |