Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Game Center's GKTurnBasedMatch seems to provide a pretty robust service for handling turn-based games, and OpenFeint appears to have something similar. The problem is, I'd like something like this for the desktop. I was thinking of rolling my own REST-based service on Rails, but after looking at the GameKit documentation, I realized it would take longer than I'd like to make it solid. I don't suppose something like this already exists that I missed in my searches?

share|improve this question
    
Good question. It's kinda strange that frameworks like OpenFeint or plus+ focus on mobile devices only. Looking at the recent decisions made by Apple, I guess GameCenter isn't far from being available for Lion.. but that's just a guess. –  bummzack Oct 17 '11 at 6:59

1 Answer 1

Not really, I think you would want to program all the networking stuff yourself, I would make turn based stuff like so:

    Server::ProcessNetwork(ClientID p_ID, EOPCODE p_In){
    switch(p_In)
    {
        case OP_NOACTION: // No action would be like a heartbeat to tell the server its still there.
        //user is still waiting
        break;

        case OP_ENDTURN:
        EndTurn(p_ID);
        break;

        case OP_SOMEACTION:
        //perform some action
        break;

        case OP_DISCONNECT:
        // User is disconnecting
        Disconect(p_ID);
        break;
    }

Again, just an idea I thought you could use, hope it helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.