Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Multiplayer

Author
Message
Arutha
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 4th Mar 2004 16:31
Hi Guys been given an assisgnment for my Computer Games Programming course in Uni which is to made a multiplayer verson of Bomberman, i've been given the game code by my teacher so I got the game one of the characters moves which is Player one.

Just want to know how I get the other characters to move when using a network I need to at least get two computers to work together with one computer controling one character, how do I do this?
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 4th Mar 2004 17:04
well you'd first have to make a connection between the computers. then it's basicly sending packets to eachother which contain player position, angles and that sort of stuff.



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 4th Mar 2004 17:14
Quote: "Hi Guys been given an assisgnment for my Computer Games Programming course in Uni...how do I do this?"


I guess they're not teaching you much in that class.

For DBP, there are some files in the the help section that are essential for teaching yourself how to do network communication.

Look in the dbpro\help\examples\multiplayer folder. That's where I found everything I needed to know that I couldn't find in the help files.
--
TAZ

waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 4th Mar 2004 17:19
if all that you require is a 2 player game;

step 1 - make the game playable offline
one player vs the computer.

step 2 - Enable multiplayer by replacing the AI with
the other players movements.

Sounds simple, but step 1 is the hardest part.

For step 2, I would place all player data into a memblock
(or, if using DBC not enhanced, into a string var) and send
that data about every 0.1 seconds and on the receive side,
simply read this data back out and place it where the AI used to be.

So, the challange on step 2 is
A - creating the connection between players
B - Combining data into a memblock or string
C - Reading the memblock or string into the AI vars

The problem is not too tough if you tackle each part by itself.

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html

Login to post a reply

Server time is: 2024-09-22 00:38:27
Your offset time is: 2024-09-22 00:38:27