gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Any Local Wifi (ad-hoc) multiplayer example code?

#152747 - Dwedit - Thu Mar 20, 2008 10:42 am

Is there any example code to show how to use short-range (not over the internet) wifi to:
* create a game
* join a game
* exchange controller data
* have a controller data queue for each player with attached frame, to synchronize players (and introduce lag to ensure synchronization)
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#152752 - melw - Thu Mar 20, 2008 12:08 pm

Dwedit wrote:
Is there any example code to show how to use short-range (not over the internet) wifi to:
* create a game
* join a game
* exchange controller data
* have a controller data queue for each player with attached frame, to synchronize players (and introduce lag to ensure synchronization)

The pong game example I did for liblobby does at least part of what you're asking for - it's short and simple, but easy enough to expand to fit your needs. Can't remember if the svn version has anything that's not in the zip file, but nevertheless you'll need the liblobby, so checkout the whole svn contents before you begin.

#152760 - iprice - Thu Mar 20, 2008 2:23 pm

I am looking at writing one based on WMB_Host code so that it can be used to download and then multiplay....... just looking at the comms stuff now.