Best method for a 2-player game?

Hi,

I’m thinking of working on a game that involves just two players who will compete head-to-head over local wi-fi.  It is not something complex that would involve many people with a server in between to relay the messages. So I’m wondering what is the best way to implement my game.

I could try the server-client model, where one of the players could act as both the server and a client, and the other player is a client that just connects to that server.  But is that too much work for this?  I’m currently following the Local Multiplayer Tutorial in the Corona blog from a few months back.

Or, is there a simpler peer-to-peer / ad-hoc method?

Also, what possibilities are there to implement this multiplayer aspect, without worrying about implementing it on my own from the ground up?   Would AutoLAN work perfectly for this, or is it too old and unreliable now?  

What about Coronium - is it overkill for a simple game like mine?

Thanks!

AutoLan would be your best option for local multiplayer, but the free Coronium Game Server is something else you might look at.

Best.

@develephant

i was trying with the autoLAN MultiPong sample but it keeps giving me this error:

Server.lua:617:bad argument #1 to ‘connect’ (string expected, got nil)

Is it because autoLAN is outdated? Any help? I just want to make a multiplayer game based on local network.

Many thanks appreciated!

Hi,

I’ve never used AutoLAN myself, so I am afraid I won’t be able to help.  You can try and contact whoever put AutoLAN together.

Best of luck.

Cheers.

AutoLan would be your best option for local multiplayer, but the free Coronium Game Server is something else you might look at.

Best.

@develephant

i was trying with the autoLAN MultiPong sample but it keeps giving me this error:

Server.lua:617:bad argument #1 to ‘connect’ (string expected, got nil)

Is it because autoLAN is outdated? Any help? I just want to make a multiplayer game based on local network.

Many thanks appreciated!

Hi,

I’ve never used AutoLAN myself, so I am afraid I won’t be able to help.  You can try and contact whoever put AutoLAN together.

Best of luck.

Cheers.