I just realized that we don't have a decent networking tutorial yet, which is a shame.
It would be really nice if someone wrote one which covered the following:
1) Start by making a simple "game" where each player is a randomly-colored circle on a screen with some walls or something
2) Using LuaSocket (or maybe Lube), make a server and client (maybe as separate .love files)
3) The client would connect to the server and then tell the server when a player pressed movement keys. Note: I definitely think we should impress the values of non-authoritative clients even on this simplest of networking tutorials.
4) The server would take the client's movement requests, simulate them (i.e., make sure they don't go through walls), and then upload the new positions of each player's circle
5) When a client disconnects, the server removes their circle. Likewise, if the server quits, gracefully disconnect the clients.
It wouldn't need to cover lag-compensating systems or the like, it would just be a simple thing meant to familiarize people with networking and the (non-authoritative) client / server model.
Desired tutorial - multiplayer
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Desired tutorial - multiplayer
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Desired tutorial - multiplayer
Yes please. I can't make heads nor tails of any of the already existing multiplayer games because there's way too much code I wouldn't need that hides the stuff I do.
Just give me a simple framework that demonstrates how to do simple sending and receiving.
Just give me a simple framework that demonstrates how to do simple sending and receiving.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Desired tutorial - multiplayer
I also would find this very useful: I took a close look at Volleybrawl once and couldn't make heads or tails of it. A tutorial for how to make networked pong or something would be fantastic.
Kurosuke needs beta testers
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Desired tutorial - multiplayer
Here is a copy and paste from another thread on some networking topics:
Selected General Network Programming Guides:
Networking for Game Programmers
Targeting A variation of dead reckoning
Source Multiplayer Networking
FAQ - Multiplayer and Network Programming
Distributing Object State for Networked Games Using Object Views
What is Lag?
Using Groupings for Networked Gaming
Selected General Network Programming Guides:
Networking for Game Programmers
Targeting A variation of dead reckoning
Source Multiplayer Networking
FAQ - Multiplayer and Network Programming
Distributing Object State for Networked Games Using Object Views
What is Lag?
Using Groupings for Networked Gaming
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Desired tutorial - multiplayer
Do any of those tell you right out how to do it with Löve?
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Desired tutorial - multiplayer
No, but LOVE also doesn't abstract anything network related.Jasoco wrote:Do any of those tell you right out how to do it with Löve?
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Desired tutorial - multiplayer
But Lube does, as mentioned in step 2. (Unless I'm woefully confused.)
Kurosuke needs beta testers
Re: Desired tutorial - multiplayer
Imho, I think a tutorial would be awesome. A nub is much more likely to check the wiki or a Love2D tutorial, especially if Love is their first language...TechnoCat wrote:No, but LOVE also doesn't abstract anything network related.Jasoco wrote:Do any of those tell you right out how to do it with Löve?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Desired tutorial - multiplayer
Didn't someone write a LUBE tutorial? I can't remember who, where or when, though.Wrinkliez wrote:Imho, I think a tutorial would be awesome. A nub is much more likely to check the wiki or a Love2D tutorial, especially if Love is their first language...
Help us help you: attach a .love.
Re: Desired tutorial - multiplayer
Technocat has a post on page 22 of the LUBE thread with attached .love files to start a server and a client. There are links to bartbes's LUBE-demo in the post that lead to NetPong server/client files. I can't honestly say that I've taken the time to look through all of the NetPong code, but I wager that it's the kind of thing you're looking for.
Who is online
Users browsing this forum: No registered users and 14 guests