Pregunta

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];
    }
}
¿Fue útil?

Solución

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.

Otros consejos

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 bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top