Cannon

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Cannon

Post 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? ^^'
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
iemfi
Citizen
Posts: 52
Joined: Fri Mar 30, 2012 11:03 am

Re: Cannon

Post 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).
Attachments
cannon.love
(28.44 KiB) Downloaded 119 times
Post Reply

Who is online

Users browsing this forum: Bing [Bot], borr and 2 guests