Client Side Prediction: Networking with LOVE

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Praetor3k
Prole
Posts: 7
Joined: Sun Jul 18, 2010 7:30 pm

Client Side Prediction: Networking with LOVE

Post by Praetor3k »

Hi all,
I've used LOVE a bit but would like to start to learning more about multiplayer/networking side, specifically client side prediction in real time games.
I figure the project I should aim for involves making a client/server demo where
player 1 = server
player 2 = client
player 2 connects to player 1, on each local player's screen, they will see a square representing themselves and a square representing the other remote player.
Movement on one screen will not only move the local player's square but this will be replicated to the other players screen (the square representing the remote player will also move).

So my first question is how to install and use LUBE for LOVE. Reading the forums I gather this is the best/only networking api for LOVE but the forums posts don't explain how to setup a project to 'import' LUBE or install it into LOVE. Am I right in thinking I just add the LUBE.lua file to my src code folder and require it?

I'd appreciate any help here

thanks
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: Client Side Prediction: Networking with LOVE

Post by Lap »

When I get back to my primary computer I can probably pack up one of my multiplayer client-server test where clients can move around a spaceship, which is the accurately moved on other clients and server. I might even have a multiplayer skeleton lying around that should be easier.


It's essentially just:

-require LUBE.lua
-put the client and server update functions in love.update() so they actually run.
-Start a server on a certain port and try to have a client connect to it.

Still it seems harder than it really is and the best way is to just find a multiplayer example like Netris and see what they did.

I'm almost positive the necessary starting stuff got posted in a previous thread.

EDIT= Screw it, everything you need is at http://love2d.org/forums/viewtopic.php? ... &start=210
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests