>I can't figure out how to do real time multiplayer matches.
Where are you in the app and what part dealing w/real time are you stuck on? Do you have at least one multi-player game under your belt? Have you built networking apps in the past?
>Apple's docs are confusing
If you mean non-trivial at times, sure. Which parts...perhaps someone can shed light.
I added leaderboards to one game, but it got rejected. I have the Pong mechanics down in SpriteKit, and trying to add multiplayer to my game.
>but it got rejected.
Interesting, thanks - I'd be curious what the rejection was for.
> I have the Pong mechanics down in SpriteKit
Good on you - moving on, and speaking of swift-centric tutorials...have you seen this one yet? ttps://www.codementor.io/wolf1981/building-a-real-time-ios-multiplayer-game-with-swift-and-websockets-jibk2xrrr
My game was a game where you tapped a button for 11 seconds and see how many taps you could get, it had a leaderboard for your best score too. The game was going to be free and ad-free, but I got rejected for App Store Review Guideline 4.2 - Design - Minimal Functionality
I submitted a appeal and here is what they said
We are writing to let you know the results of your appeal for your app, Tap That Button!.
The App Review Board evaluated your app and determined that the original rejection feedback is valid. Your app does not comply with:
We appreciate your efforts to resolve the 4.2 issue and understand your desire to provide a fun game app to your users. However, the current version of the app submitted for review provides a limited user experience.
In order for your app to be reconsidered for the App Store, please revise your app to include native, interactive iOS features that take advantage of the iOS platform. For more information about developing apps for the App Store, visit the Develop section of the Apple Developer website.
We hope the resources available on the Apple Developer website will assist you to resolve this issue.
App Review Board
But that is off-topic, I have seen that tutorial before, but I would like to make a Game Center based multiplayer experience. It is seamless and amazing to use, but I have no idea how to do it. I also would like to know how sync data, two Integers (Wins VS. CPU, and Wins VS. Online Players) to make sure that the scores are synced, to put on leaderboards and in my UI, do you know how to this also?
I've done multi-player w/BT in the past - have you gotten far enough in your plans to decide what type network would work best for you?
I think today, the pref. is for Wi-Fi...but that assumes more than just a handful of players, which today seems a bit old hat
I'm trying to locate something for you that helps entry to the topic easy enough that you can transition to the docs and work with current tools...not an easy task, I'm afraid - I tend to lean on the docs. I'll ping this thread if I find something lower level.
Definitely WIFI Game Center, I am making only for Apple and Game Center just feels in the Apple system. As with all Apple APIs, once you get the hang of it, it is simple to understand
Step by step, then. Here's something w/multipeer~Swift 5 that should be simple enough and help get your feet wet. See if it's ok to grasp, etc. Might help to gauge what else you can handle in the mean time and at least expose you to one of the concepts you'll need, I think.
Thanks for sticking with me!
You have a couple of challenges. The best document is:
A 'multi-player real time GameKit game' requires solving the following issues:
1) defining the game on one computer
2) authenticating Game Center players
3) starting a match between two players over GameKit
3) transmitting information between two computers using GameKit
4) synchronizing the two computers so the game flows correctly
Your other issue is Swift versus Objectove C. Lots of issues (i.e. authentication and transmission) are explained in tutorials in Objective C because GameKit came out before Swift was conceived.
One 'learning' approach to consider is:
1) use MCSession to link two computers running on the same WiFi network and swap data.
2) construct a two player game using MCSession
3) add in Game Center Leaderboards
4) after doing 1-3, transition the game to GameKit
Dr_Beta wrote (in response to KMT):
On the off-chance that you meant this comment as a to 'Reply' to my message above, then please 'Reply' to my message above not to other message threads. Thanks.
By the way, based on your comments I strongly recommend you do #1and #2 in the 'learning approach'.
I was replying to to KMT, I am more looking for online, I have solved #1 and #2
You can get your app approved if you link two devices in the same room running on the same WiFi using MCSession.