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?
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
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.....
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)
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.
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
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.
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
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.
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?
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.