Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i'm developing a simple game (for Android, using LibGDX Framework) and i would like to implement multiplayer feature to it. So, since the main project with the logic of the game in LibGDX is separated from the android project, i have created an interface to allow my game to call the GPGS API in order to implement its services. But, it doesn't work. Have someone an example to show me how to do this? However, this is what i have done (premise: GPGS SDK is already installed and its library is linked to my Android project):

  1. Copy the GameHelper class of BaseGameUtils (downloaded from Google) in my Android project.
  2. Make the interface in the main libgdx project
  3. Create a class (named MultiplayerOperations) that implement the interface, in my android project. This class is more similar of the BaseGameActivity available in the BaseGameUtils.
  4. In the activity of my Android project a make an object of the last class type and pass it to the constructor of the main libgdx project.

    mpOperations = new MultiplayerOperations(this);
    mpOperations.onCreate();
    
    initialize(new CloseWall(mpOperations), cfg);
    

When i start the application ... it doesn't work and it exit with an exception.

share|improve this question

closed as unclear what you're asking by John McDonald, Anko, bummzack, Trevor Powell, Seth Battin Dec 16 '13 at 5:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
It would be helpful if you could explain "it doesn't work" and paste the exact error message you're getting from the exception. –  Byte56 Jun 13 '13 at 16:25
1  
Welcome to GameDev.SE! Could you possibly post the exact exception? Is it the initialize line that throws? –  ashes999 Jun 13 '13 at 17:12
add comment

Browse other questions tagged or ask your own question.