Just bought it, pretty cool! I was able to get a system going pretty quickly by tucking each color in its own area, then just moving a new bubble of the same color onto it.
Maybe make it so that bubbles appear as small on their own, so the user has to deal with them in different places, and if you have more than ten on the screen at a time (or something like that) then the game also ends? That way you create a random positioning that the player has to “deal with,” instead of just always creating bubbles in the center and sending them to whatever corner they go in.
@beyond that’s a good idea I might add it for the new mode in the future.
Here’s some tips for making higher score
Create many small circles with just tap the screen before create big circle. But be sure to leave enough room for big one.
Because score from each circle is: (Number of circles)x(Radius)
if difficulty == 1 then
if score > highscoreNormal then
saveLocalData("highscoreNormal",score)
saveScore(score)
end
elseif difficulty == 2 then
if score > highscoreHard then
saveLocalData("highscoreHard",score)
saveScoreHard(score)
end
end
When game center button is touched
if playerIsAuthenticated() then
showLeaderBoardWithIdentifier(1)
else
print("Player not authenticated")
end
In GameCenterAddon.m
- (void) saveNewScore: (int) score
{
// INSERT YOUR LEADERBOARD IDENTIFIER IN THE LINE BELOW
// Replace "Easy Difficulty" with your identifier from iTunes Connect
GKScore *scoreReporter = [[GKScore alloc] initWithCategory: @"com.posathorn.bigbigger.normal"];
if (scoreReporter)
{
scoreReporter.value = score;
[scoreReporter reportScoreWithCompletionHandler: ^(NSError *error)
{
if (error != nil)
{
// handle the reporting error
NSLog(@"Game Center: Error Saving Score - %@", [error localizedDescription]);
}
}];
}
}
- (void)showLeaderboard: (int)ident
{
NSString *identifier;
// INSERT YOUR ACHIEVEMENT IDENTIFIERS BELOW - These are set up in iTunes Connect
identifier = @"com.posathorn.bigbigger.normal";
GKLeaderboardViewController *leaderBoardCont = [[GKLeaderboardViewController alloc] init];
if (leaderBoardCont)
{
leaderBoardCont.category=identifier;
leaderBoardCont.timeScope=GKLeaderboardTimeScopeToday;
leaderBoardCont.leaderboardDelegate=self;
self.codeaViewController.paused = YES;
[self.codeaViewController presentModalViewController: leaderBoardCont animated: YES];
}
}
@lruizlopez137 This is an App Store app, not one released for free open source here. The code showed are snippets, because people were asking about Game Center techniques. Please stop bumping old discussions.