The Daily Click ::. Forums ::. Klik Coding Help ::. How to make a good working network (lan) game
 

Post Reply  Post Oekaki 
 

Posted By Message

Corny



Registered
  26/10/2003
Points
  232
31st July, 2004 at 05:13:02 -

There's a project I'm currently working on, 2nd part of a Tank-like game with PacMan-Elements. The first one was still in KnP, so no network, 2Players on one keyboard. But now, I'd like to make it a network-game.

I searched for information, and came across some strange things like "moo" and stuff. But I really don't understand how to use them. Though I actually understand that the data, that has to be sent, is the position of the tanks and the position of the medals (which have to be collected). How can I do this? Or how can I make MMF doing this?

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
31st July, 2004 at 05:33:42 -

I didn't understand actually what you wanted to know, but if you needed to know how to send tank movement things from person to person:
Player 1 pressed right arrow key = Send text "Right" trough subchannel 0 or what ever you want to use.

In player 2's application:
Moo has text to receive from subchannel of your choice = Set edit text text to Receive text from Moo2, subchannel which you used.
Then: Edit text = "Right" = Set player 1 tank location to tank location +x1

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
31st July, 2004 at 06:12:33 -

For Lan games I highly recommend D-Play. It is included with MMF and is far superior in lan games (and easier to code IMO) compared to the moo series. Unfortunately the official site has just dissapeared.....

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Corny



Registered
  26/10/2003
Points
  232
31st July, 2004 at 06:14:23 -

Thanks.

I'm not good at programming (I'm better in graphics and gamedesign) and I'm trying to make a network game with MMF. Actually, I don't even know how to make 2 computers interact via MMF... So, I'd like to know how to build up a connection between 2 comupters, send and recieve data, making a menue for the user... just everthing one has to know when making a network game... (sorry fo my bad english)

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
31st July, 2004 at 09:10:21 -

im not sure how to work D-Play but if you wanna use MooClick it shouldnt be to hard, check out www.tigerworks.co.uk goto the file archive for MMF and download the Mooclick examples.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
31st July, 2004 at 10:17:18 -

is moo free.....?

 
http://www.robocaptain.com

Corny



Registered
  26/10/2003
Points
  232
31st July, 2004 at 15:14:15 -

AFAIK, you have to pay for the extensions needed for using the Tigerworks examples (not for the standard moo, though, at least I think so)

In that case, would somebody please be so kind and explain to me how to use D-Play? Thanks in advance!

 
n/a

vortex2



Registered
  27/05/2002
Points
  1406
31st July, 2004 at 16:28:54 -

MooClick comes free with MMF 1.5 as well as MooSock. Moo,Moo2 are virtually obsolete, and MooGame has to be paid for.

 
A bit of insanity with every bite!

Mr Icekirby



Registered
  18/12/2003
Points
  846
31st July, 2004 at 21:53:20 -

moo and moo2 are indeed obsolete, but free for use if you want em,mooclick and moogame are fairly simple, i've had no expirience with the d-play extensions though

 
Mr Icekirby says so!
OBEY ME!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
1st August, 2004 at 05:52:08 -

Am I the only clicker who knows Dplay?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
1st August, 2004 at 09:02:16 -

No, I used to use it but I found it a little slow to use. The only thing going for it is it's much easier to play network games, since everyone on the network will show up in a list. You can host a MooClick server on your computer easily enough anyway.

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
1st August, 2004 at 09:58:40 -

it's microsoft tech. of course it's slow, but whatcha gonna do

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Agent_K64



Registered
  17/03/2003
Points
  69
4th August, 2004 at 11:27:53 -

I like D-play. It is, im my opinion, a really good way to learn the basics. It also has global connections across frames, something that you'll find useful. As for it being slow, I haven't really measured the stransfer speeds, but it does have less features than MooClick, therefore it most likely has leff overhead as well (and less overhead means more speed). With that said, you may not want to use D-Play for games other than LAN games, since it has a "popup" for typing in the IP of the server, etc.. making it somewhat difficult to integrate into your game window's "graphics theme".
Anyway, seeing that you're thinking of making a LAN game and are not familiar with the details of making an online game, DirectPlay is a good choice for you. I've made a small game with it called Phoenix Fighter a long time ago with TGF, I think I still have the source code for that thing, but I'm not sure... I'll post a link to it if/when I find it.

 
Evil omg~!

Corny



Registered
  26/10/2003
Points
  232
20th August, 2004 at 04:09:06 -

Thanks, I think I try DirectPlay then.

So it's opening a popup by itself which lets you type in the IP and stuff for finding your friend via lan?

In general, I just have to program the game as if the 2 players were controlled on one pc, and after that, make the 2 playersprites send data from one pc to the other?

How can I test if the game is working when I don't have a second PC at hand?

Am I right at all?

 
n/a

Agent_K64



Registered
  17/03/2003
Points
  69
20th August, 2004 at 12:35:33 -

You can test by running two copies of your game on only one computer. Simply host in one of the games, and join in the other. As long as you are only playing on a LAN, you can enter nothing into the IP address field and hit OK, it will look for all games on the network. This doesn't work over the internet, though.

"In general, I just have to program the game as if the 2 players were controlled on one pc, and after that, make the 2 playersprites send data from one pc to the other?" Not sure what you mean here. I’d give you the source for my old game, but it’s a total mess... I’m pretty sure there are basic Dplay tutorials out there, somewhere... if not, I could make one.

EDIT: http://www.create-games.com/article.asp?id=802

Image Edited by the Author.

 
Evil omg~!
   

Post Reply



 



Advertisement

Worth A Click