Coder Social home page Coder Social logo

turnbasedskeleton's Introduction

TurnBasedSkeleton

This project aims to create a skeleton for any turn based game using GameCenter. As GameCenter seems to lack in documentation and tutorials, especially as far as turn based gaming is concerned, I decided to create this project to help others who might want to integrate GameCenter to their projects. This project (as-is) supports two player games. This could easily change with minimal alterations of the code.

This project uses a custom UI to:

  • present a list of all games
  • display the local player's friends and allow him/her to pick one to invite
    • For the opponent to receive the invitation a turn must also be sent, as well as a reminder. Thus, in order to invite a friend, a friend is selected, an invitation request is made, a turn is taken and a reminder is sent.
  • accept/decline an invitation
  • end and remove an active game

This project:

  • Allows the local user to login to GameCenter. If the local user is not already logged in through his/her device, the GameCenter login screen will appear.
    • If the local user does not login to GameCenter, an error message will appear.
    • If the local user logs in to GameCenter, the program continues.
  • Allows the local user to get a list of all:
    • Games that are his/her turn
    • Games that are the opponent's turn
    • Games he/she is invited to
    • Games he/she has initiated and have not been accepted or declined yet
    • Games that have ended
  • Allows the local user to remove a game that has ended from the games list
  • Allows the local user to receive a new turn from an opponent, including data
  • Allows the local user to send a new turn to an opponent, including data
  • Allows the local user to receive and be notified of a new invitation from an opponent
Special thanks go to:
• IJReachability (https://github.com/Isuru-Nanayakkara/Reach/tree/master)
• MBProgressHUD (https://github.com/jdg/MBProgressHUD)
• FontAwesome (https://github.com/thii/FontAwesome.swift)

turnbasedskeleton's People

Contributors

mhatzitaskos avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.