The Daily Click ::. Forums ::. Klik Coding Help ::. MooClick or DirectPlay examples
 

Post Reply  Post Oekaki 
 

Posted By Message

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
26th May, 2004 at 23:11:26 -

Does anyone know where I can find good MooClick or DirectPlay examples for head to head play (or something like SKS)?

 
http://www.klik-me.com

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
26th May, 2004 at 23:14:05 -

I dont have any tutorials, but if you have a specific question we might be able to help w/o them?

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
26th May, 2004 at 23:26:36 -

How you would share data with eachother i.e. alterable values, position on screen, etc.

 
http://www.klik-me.com

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
26th May, 2004 at 23:37:06 -

I havent used DirectPlay, but with MooClick it's relitavely simple, by sending SendText actions from the sender, and using onClientMsg events on the receiver. I dont have MMF infront of me (I'm at uni atm), so if I got the names of the functions wrong, plz tell me.

But it's basically that simple. You didnt mention connecting, or anything in that respect, but all you have to remember is you need to set the users name before you try to connect.

I think actually there are some tutorials in the DC articles section (not game related, as far as I can remember) but other tutorials, such as using MOO to make... I think one of them was a Telnet client? Plus some others of a similar theme.

BTW you need to be able to minimize data. This may sound obvious, but there are a lot of people who dont. This means, for example, instead of sending "123" as text, you should convert it to an integer to improve performance, since it uses a lot less memory to save 123 as a number than it does as text. This is just one example, but there are many. Probably you could make the game first, then optimise it once it is fully working. If you dont, I guarentee that for a large-scale game it'll run quite laggy, particularly for 56k users.

If you have any more questions, feel free to ask.

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

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
27th May, 2004 at 02:03:12 -

www.tigerworks.co.uk - has mooclick and game examples. The official Direct Play for MMF extension website got taken down. Direct play is better for Lan applications while mooclick is better for internet applications.

 
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

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
27th May, 2004 at 02:26:15 -

Directplay wasnt actually finished, well from what i hear anyway.
MooClick is ALOT better and im really sure ben used it in SKS.
it is quite easy to pickup if you read a few of tigerworks examples, you send Data(x,y,speed,dir) through a subchannel. you can have as much subchannels as you like(1 for x pos, one for y pos e.t.c) or you can cut it all up with String parser 2 and send it all on 1 subchannel.

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

Post Reply



 



Advertisement

Worth A Click