Big Bigger - A Game Made with Codea

It’s available now for $0.99. You can download it from the link below.

https://itunes.apple.com/us/app/big-bigger/id640028352?ls=1&mt=8

Thanks to people who helped me learn to code in Codea. And all beta testers who helped improve this game a lot.

Thank you Simeon and TwoLivesLeft for Codea too :slight_smile:

I use Codea Splash Screen in this game, hope it helps people know about Codea more.

Here are some promo codes

Y9WP47H3T4YK

FHJWAT9RHPLL

W4NLE3XJ93L6

3RTPY746XNEK

RYJRR9RLL6XE

Looks nice, good luck!

Woohoo! Cool! Took RYJRR9RLL6XE.

Downloading :slight_smile: took FHJWAT9RHPLL.

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.

But anyway, nice work, keep it up!

Another sale from me. I didn’t participate in the beta, so I’m coming to it new. It strikes me as a very clean, colorful experience.

Good job!

@Mark Thanks, very glad you enjoy it :slight_smile:

@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)

Just bought it, pretty cool! For what is the promo code?

Thanks. Promo code is for getting app for free by redeeming it in iTunes.

Awesome :slight_smile:

Hey @wave, I was wondering, how did you do the GameCenter? More specifically, saving a score to the leaderboard?

@JakAttak

Main.lua

function setup()
    gameCenterStart()
end

When the game is over

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];
    }
}

@wave interesting… I have the same stuff and showLeaderboard() works but not saveScore…

@JakAttak Can I see your save score code? I’ll look into it and might find the problem. Have you enabled game center for your app in iTunes Connect?

@wave sure! And yes I have because the leaderboards work.

@wave here is the code
https://www.dropbox.com/s/9h9r0vz2sjv56c5/AppDelegate.h
https://www.dropbox.com/s/qn4t49oaeue6g0u/AppDelegate.mm
https://www.dropbox.com/s/nd6y7tgw9nd8j8m/GameCenterAddOn.h
https://www.dropbox.com/s/wqrvon2fhflflac/GameCenterAddOn.m

In this function

- (void) saveNewHardScore: (int) hardscore
{
    // INSERT YOUR LEADERBOARD IDENTIFIER IN THE LINE BELOW
    // Replace "Easy Difficulty" with your identifier from iTunes Connect
    
    GKScore *scoreReporter = [[GKScore alloc] initWithCategory: @"Hard Highscore"];
    
    if (scoreReporter)
    {
        scoreReporter.value = hardscore;
        
        [scoreReporter reportScoreWithCompletionHandler: ^(NSError *error)
         {
             if (error != nil)
             {
                 // handle the reporting error
                 
                 NSLog(@"Game Center: Error Saving Hard Score - %@", [error localizedDescription]);
             }
         }];   
    }
}

and

- (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:@"Easy Highscore"];
    
    if (scoreReporter)
    {
        scoreReporter.value = score;
        scoreReporter.context = 0;
        
        [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) 
         {
             if (error != nil)
             {
                 // handle the reporting error
                 
                 NSLog(@"Game Center: Error Saving Score - %@", [error localizedDescription]);
             }
         }];   
    }
}

At the line

    GKScore *scoreReporter = [[GKScore alloc] initWithCategory: @"_________"];

You have to use your leaderboard id, not its name.
For example

    GKScore *scoreReporter = [[GKScore alloc] initWithCategory: @"com.posathorn.bigbigger.hard"];

Also change the identifier in showLeaderboard function too.
For example

- (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];
    }
}

Is everything in the blue the full code or are some parts fix ups and others are the code? Please tell me or specify to me what is what?

@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.