Game Programming and Development Tools

Multiplayer – Mene-Mene

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Alright, I'm just starting multiplayer, and I don't even know where to start. I'm thinking a tic-tac-toe game would do the trick, but don't really know where to begin.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
Tic-Tac-Toe? Coincidentally enough , I was just working on one myself - although only have a basic framework going.

Do you mean multiplayer over a network or mp on a single computer?

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Over a network.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
Have you studied the B3D commands for doing that?
Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
yes, but it all makes no sense to me.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto

Realm Master

Member

Posts: 1971
From: USA
Registered: 05-15-2005
quote:
Originally posted by Mene-Mene:
yes, but it all makes no sense to me.


yay I'm not alone.


------------------
yeah, im a little crazy
Check out my crazy sig that I made:

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
Lol. *he says as he types away on a MMORPG...*

J/K

Have you tried googling it? I remember seeing a great article about this kind of thing - except for DarkBASIC.

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
Lava did a chat program once in B3D that used the basic multiplayer settings to set up chat sessions.... i think he posted the code either in the code database or the showcase. it was called SlimChat. you could probably learn from that. plus he probably knows a little about it (duh) and he could probably post. try PMing him.

------------------
that post was really cool ^
|
[|=D) <---|| me

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Laz: I haven't tried googling it yet due to the fact getting an answer here is probable, and more personalized.

BuddBoy: Will look into him (that sounds weird), though I can't download his program.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto

Lava
Member

Posts: 1905
From:
Registered: 01-26-2005
If the network aspects don't make sense, I would suggest actually looking more into networks and stuff like TCP, how they work, etc, and other stuff like that.


Graphics 640,480,16,2
SetBuffer BackBuffer()

Print "Welcome to SlimChat Client"
Print ""
Print "Press Space to chat"
Print ""
Print "After you put in your name you will"
Print "prompted to choose a connection."
Print ""
name$=Input("What is your name? ")

newGame = StartNetGame()
If newGame = 0 Then
Print "Could not start or Chat."
ElseIf newGame = 1
Print "Successfully joined the Chat."
ElseIf newGame = 2
Print "A new Chat was started."
EndIf

playerID=CreateNetPlayer(name$)

Joined_Info$="Someone has joined the Chat"

If playerID > 0 Then
Print "Your PlayerID=" + playerID
SendNetMsg Rand(1,99),joined_info$,playerid,0
Else
Print "Couldn't join chat! Aborting!"
End If

While Not KeyHit(1)

If RecvNetMsg() Then
msgType=NetMsgType()
If msgType>0 And msgType<100 Then
msgFrom=NetMsgFrom()
msgData$=NetMsgData$()
Print "Person:" + msgData$
End If
End If

If KeyHit(57)
message$=Input$(name$+": ")
SendNetMsg Rand(1,99),message$,playerid,0
End If

Flip

Wend

End

------------------

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
I understand some basic concepts of Networking and such, but am confused as to how to program a game for 2 players.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto