Question about making game

Discussion in 'iOS Programming' started by dbhoward20, Dec 21, 2012.

  1. dbhoward20 macrumors newbie

    Dec 19, 2012
    Hey everyone I am new to ios Development and I am wanting to make a game based like Clash Of Clans/Kingdoms of Camelot. My primary question before I even start is do you need a server to store the players info such as how many resources they have and such? Or is this achieved with something like mysql? If it is server based could someone give me a link to a good company I could get a few servers through?
  2. resetme macrumors newbie

    Oct 28, 2012
    Hi there, i haven't played Clash Of Clans/Kingdoms but it sounds like Travian. A server based game.

    Well in that case you need a server to store all player data inside a DB, access (asp) or mysql(php). It's like making a global ranking system for a game, you store all player scores using mysql into a server(host).

    But the problem from an async game using a mobile device is the internet, not everyone have access, so you can't play the game freely, some how you will have to block every possible move or action from the player until he have internet connection and update the stats from every user. Maybe if you save all the moves offline and then send it to the server when the user have access.

    It's hard, because a browser game have internet access all the time. Other idea it's a 1 vs 1 game, so then you block the users moves waiting only for the other enemy and not the entire server/world.

    Remember that apple do block apps that only use internet and don't advice about it.
  3. Duncan C macrumors 6502a

    Duncan C

    Jan 21, 2008
    Northern Virginia
    If you just need to save player info locally, you can certainly save it in an SQL database (or even a simple data file of some kind) on the device. You only need a server if you need to exchange data between users, or back it up remotely, or something like that.

    As for server hosting companies, there are lots. We use There's also GoDaddy and various others.

Share This Page