Skip to main content
GameDev.net gamedev.net
🔒 Locked

Android multiplayer programming

Started by n3Xus Jul 27, 2011 at 1:49 PM 1 replies 3.1k views
Original Post
n3Xus
n3Xus
Hello,

I'm interested in game programming for Android so I'm gonna try to make a simple game.

The final goal is a multiplayer game, but I don't know which "medium" I should use: bluetooth, wireless...
I really don't have any idea what's the standard nowadays or how it actually works, as I'm just starting out.

The thing is I would obviously need to test this thing out, so I'd probably need to run one instance of the game on the PC emulator and another one on the actually cell phone.
So If I would choose bluetooth I'd have to get a bluetooth reciever for the PC obviously.

As I said, I have no idea what to use, so the question could be summed up to: how can I make multiplayer games for android so that I will be able to do some testing with my PC as "another" android device (note: I'd like to avoid using the internet as a connection medium).
Setrio
Setrio
Try to make some research and frameworks for Android that resolve this. Make some research in the different options that you have to connect devices and make your choice.
Zael
Zael
If you are still having an issue with this go here. That will allow you to make TCP connections between emulators for testing networking code. Bluetooth you really just can't do with a single phone.

The method I used when writing my own program 6 months ago, was to write separate connector classes for TCP and bluetooth but allow both connectors to use the same connection class for the actual transmission and reception of data. Then I tested the TCP connection on my PC, and once I new that both the data protocol and connection setup worked, I wrote a bunch of logging code into my bluetooth connector class and went to a Verizon store. There I simply side-loaded my app with bump and hoccer, and tested the bluetooth code. With the logging in place I was able to get things working after about 2-3 trips to the verizon store.

Good luck.
-Zael-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.