Page 2 of 2

Re: Cannon

Posted: Thu Apr 26, 2012 12:19 pm
by Nixola
Even if I manage to code a network multiplayer mode (turn based? I don't know what to do), I can't host a server, so it would be IP based... Can you explain me also networking? ^^'

Re: Cannon

Posted: Fri Apr 27, 2012 2:34 pm
by iemfi
I added a trebuchet... Why? Because trebuchet! I havn't played with multiplayer in love2d yet so this sounds like the perfect opportunity to try.

Edit: Here's multiplayer, I think it could there's a lot of room for improvement in my implementation (and the trebuchet keeps spazzing out) but it works :). Hope the code is understandable. You can test it by opening it twice and use one to host and the other to connect to the host (there's another trebuchet for the second player if you scroll to the right).