Cheers
Making a network game
Making a network game
Hi all. Ive got some free time so I was thinking of making a multiplayer bomberman like game for me and some friends. Problem is Ive no idea how to do networking in a game. Anybody know what exactly needs to be done? For example Ive no idea how to send packets between computers (over the internet) and then how to use them to update all players. And Im unsure what would be required for this (a dedicated server?) and where to get one...
Cheers
Cheers
Mark my words, when you least expect it, your uppance will come...
- NoahPhense
- Addict

- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: Making a network game
Start with the codearchiv.. plenty of network stuff in there.. and along withMoonshine wrote:Hi all. Ive got some free time so I was thinking of making a multiplayer bomberman like game for me and some friends. Problem is Ive no idea how to do networking in a game. Anybody know what exactly needs to be done? For example Ive no idea how to send packets between computers (over the internet) and then how to use them to update all players. And Im unsure what would be required for this (a dedicated server?) and where to get one...
Cheers
the examples that came with PB, should get you moving on basic network
comms.
i.e. there is a Network Client and Network Server in the help file.. that's
what I used to get started.. learning how they talk to each other..
- np
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
experiment with pauls chat apps and basically duplicate that for your game. you'll need to add custom code (prefixes) like in freds atomic server to handle special situations....
i've done some multiplayer code in DB and a remote server admin tool in PB, but I'm still working on my own first multiplayer PB game. Today is the first day in about a month or more that i could work on it. I've even been offered money for the tool, but its free until I convert it to linux or become famous
i've done some multiplayer code in DB and a remote server admin tool in PB, but I'm still working on my own first multiplayer PB game. Today is the first day in about a month or more that i could work on it. I've even been offered money for the tool, but its free until I convert it to linux or become famous
Code is good... Its an international language.
Some time back I've created a very simple chat via LAN/Internet with PB. Then I showed this chat to a friend of mine - and what did he do? He hacked the programme because I had very little experience in coding hacker-secure. He said one very important sentence: "25 percent of the programming is the programme itsself, 75 percent is the security".
So always make your protocols as secure as possible, whenever you examine some data from a client, first make sure: Does this client exist? Has he properly logged in? If you don't check such things, it is likely that someone just connects, sends some rubbish into the network and leaves. If there is sufficient security this won't happen.
So you really should care about security if you don't want your game to be hacked.
So always make your protocols as secure as possible, whenever you examine some data from a client, first make sure: Does this client exist? Has he properly logged in? If you don't check such things, it is likely that someone just connects, sends some rubbish into the network and leaves. If there is sufficient security this won't happen.
So you really should care about security if you don't want your game to be hacked.
The truth is never confined to a single number - especially scientific truth!
i finished my bumper pool game.
it supports 4 players online or ofline or mix/match
you can find it here:
http://home.comcast.net/~norman.perry/Pool.zip
it has source code.
it supports 4 players online or ofline or mix/match
you can find it here:
http://home.comcast.net/~norman.perry/Pool.zip
it has source code.
Code is good... Its an international language.
