Page 1 of 1

Online game example

Posted: Mon Jan 02, 2012 10:09 pm
by Mkalo
I did not find any online games in the forum, so I decided to make this simple game
Need two people to work online, and the IPs are configured in main.lua

You click on the screen and shows a "gout" on your screen and your friend.

I'm not very good in lua and in English, I do my best :(
Online Example.love
(854 Bytes) Downloaded 340 times

Re: Online game example

Posted: Tue Jan 03, 2012 7:18 am
by Ensayia
How do you connect to another player? I'm assuming this just lets you see each other's 'pings'.

Re: Online game example

Posted: Tue Jan 03, 2012 11:45 am
by Mkalo
Don't have connections in udp, just send datagrams to the FriendIP in port PORT locateds in main.lua

Re: Online game example

Posted: Wed Jan 04, 2012 8:07 am
by spirulence
Need some friends to test this with now!

I had not before realized that LuaSocket was included with LOVE - I had always thought you needed to unpack additional library files into the LOVE install directory or something. I wonder what else you are hiding, LOVE...