Here is the last example game for the networking tutorial... that I hope to finally start on next week. I optimized this one as much as possible for many players and on a LAN I wouldn't be surprised if 20+ players could play. I've limited it to 10 players due to size of game field. This is a TCP networking engine and I didn't do any interpolation so let me know if you try it out over internet.
Edit: I think turn-based, real-time strategy, slower action, RPG, and strategy are possible for this particular library (PodSixNet). The only game that TCP is a poor choice for is fast real-time games (FPS). After doing more testing, I think with interpolation/prediction most lag issues for the TCP engine on "slower" (speeds less than 100 pixels second) games can be accounted for (after all WoW and other MMOs use TCP). Still I plan to look into UDP "down the road".
<img src="http://i43.tinypic.com/153ma2p.jpg">
Get the files here (need .99.84):
This is a new version with a slightly higher top speed and acceleration. Also, some server side changes to reduce # packets.
http://www.box.net/shared/ypq6pdj0mf
You will need the dependencies on both the client and the server.
If you want to host the server online either setup your router for NAT passthrough or use a tool like Hamachi (https://secure.logmein.com/products/ham ... nload.aspx) on everyone's system. Hamachi will setup a virtual LAN between everyone's system and the game runs pretty good in my testing over the VLAN.
Controls:
Up, Down, Left, Right - Control your guy
Spacebar - Drop Stars/Bombs. These inflict heavy damage on other players and slow the beast down.
T - Teleport. Randomly moves you on the map.
L - Light You only have limited light so use it wisely.
M - Minimap Your light must be off to see other players positions with the map. Using the
minimap lowers your health, so use wisely.
Strategy:
The goal of the game is to either be the last one standing in the dungeon (you can't kill the beast) or to escape first. You need one key to be able to unlock the blue portal. Look out for the red traps which slow you down. The keys, traps, and escape portal are randomly generated each time you play.
I was going to turn this in to a real true game, but I'm running short on time so I figure I better get the tutorial out like I promised.
Will you work together to escape the dungeon or feed your friends to the beast?