Pergunta

I have integrated nextpeer in cocos2d game.

I used below call to end game. But nextpeer not showing end of game view if game ends within 60 seconds.

-(void)callNextPeerTournamentOverWithScore:(int)score
{
    if ([Nextpeer isCurrentlyInTournament])
    {
        [Nextpeer reportControlledTournamentOverWithScore:score];
    }
}
Foi útil?

Solução

What is the type of the tournament? Tournament type should be 'Game Controlled' if you want to end the tournament at any time. You can edit tournament type using their website.

Note: Default tournament type is 60 seconds.

Outras dicas

I got solution from shahid-rasheed..Thanks. All we need to do is just change tournament type to 'Game Controlled' in next peer.com not in code.

enter image description here

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top