Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How can I use GameKit? — Gideros Forum

How can I use GameKit?

mertocanmertocan Member
edited May 2012 in Plugins
I need a leaderboard for my application. I had a little search on forum and i saw that I have to use gamekit. However , I have no idea about it. I tried to find from google but i got examples on cocos. Does anyone have example on gideros or can someone explain it to me?

Dislikes: Nathan_D

+1 -1 (+0 / -1 )Share on Facebook

Comments

  • but I think i need gamekit source code. right?
  • avoavo Member
    oh the plugin is included in the installation directory of Gideros in the All Plugins folder. You can add it to your app with: require "gamekit"
  • alexzhengalexzheng Guru
    edited May 2012
    It's very simple to use game center plugin, you just need to learn the concepts from any tutorials about game center with objective C, and the apis in ther plugin is just the same as the offical's.
  • Thanks for comments :) I got it
  • totebototebo Member
    edited February 2014
    Hi guys,

    When I use this with my app:
    GameCenter = gideros.class(Sprite)
    require "gamekit"
     
    function GameCenter:init()
    end

    I get this back:
    GameCenter.lua:3: module 'gamekit' not found:
    	no field package.preload['gamekit']
    	no file '.\gamekit.lua'
    	no file 'C:\Program Files\Gideros\lua\gamekit.lua'
    	no file 'C:\Program Files\Gideros\lua\gamekit\init.lua'
    	no file 'C:\Program Files\Gideros\gamekit.lua'
    	no file 'C:\Program Files\Gideros\gamekit\init.lua'
    	no file '.\gamekit.dll'
    	no file 'C:\Program Files\Gideros\gamekit.dll'
    	no file 'C:\Program Files\Gideros\loadall.dll'
    stack traceback:
    	GameCenter.lua:3: in main chunk
    I use the, currently, latest version of Gideros (2014-01). What else do I need to do to make it work?

    Cheers,

    Niclas
    My Gideros games: www.totebo.com
  • Got it: You have to test this on an iOS device (I was using the desktop player), or it will throw an error.
    My Gideros games: www.totebo.com
  • @totebo yes gamecenter is a platform specific service, which runs only on ios
Sign In or Register to comment.