문제

I'm new to RubyMotion and although I found some good tutorial I cannot find anything about using RubyMotion with GameKit and GameCenter.

The Context: I have done a Tic-Tac-Toe game to learn RubyMotion. The game works fine locally, but I want to add multiplayer capabilities. That tutorial (http://www.raywenderlich.com/5480/beginning-turn-based-gaming-with-ios-5-part-1) in Obj-C is very comprehensive, but I failed to translate it to RM.

The app is very (very) simple, and very letterpresse"esque" (minus the design). It consists in a single tableview with started games and new game option, and the view for the Tic-Tac-Toe itself.

Does someone have experience with the GameKit framework in RubyMotion, or have found a tutorial on the subject? Actually, I cannot even make the first step of authenticating the user when the app loads (something like GKLocalPlayer.localPlayer leads to uninitialized constant and so on).

Thank you for your time!

P.S. It's my 3rd app (but first in RubyMotion) so I would think GameCenter and AppID, etc. are properly configured on iTunesConnect

도움이 되었습니까?

해결책

Ok found it... I had to include the framework in the Rakefile.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top