Skip to content

Instantly share code, notes, and snippets.

@jaredjenkins
Created September 26, 2013 17:38
Show Gist options
  • Save jaredjenkins/6717733 to your computer and use it in GitHub Desktop.
Save jaredjenkins/6717733 to your computer and use it in GitHub Desktop.
- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Enable test mode to view your events in the Validator. Remove this line of code before releasing your game to the app store.
[Playnomics setTestMode: YES];
const unsigned long long applicationId = <APPID>;
[Playnomics startWithApplicationId:applicationId];
//preloads the frames at game start
[Playnomics preloadFramesWithIds:@"frame-ID-1", @"frame-ID-2", @"frame-ID-2", @"frame-ID-3", nil];
//other code to initialize your iOS application below this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment