I need to test this simple 3 players net code,... I'm trying to do the basic net code for a 6 players (max.) multiplayer game.
A nice thing in this demo (and surely the comercial game) is it's using GNET (when possible) to detect games in progress.
So basically there is no need to write a IP or anything like that, but if GNET isn't detected then the "old way" is there too.
This demo only contain the code to move the players around smoothly, and correctly rotate them.
You will also see there is a blue box over each player, this should represent where the camera is pointing to (later it will be a "gun")
----------------------------------
controls:
Arrows -----> move
right Ctrl -----> run
Page Down -----> duck / stand (toggle)
P ------> pause the game in case you want to move the mouse outside of the window
W ------> wireframe view (toggle)
For the ones who want to INVERT THE MOUSE, you will see there is a "KeysConfig.ini" file, open it and change the line where says "NO" to "YES" (in capital letters)
-----------------------------------
A little overview of how it should work:
-When you launch the game you will be asked by a Player name.
-Then, 3 options are shown: 1-host , 2-join a game listed in GNET , 3-write a IP to contact the host (old way)
If you decide to Host a game, your game should be inmediately listed in GNET as
"Tecno Level_A yourIP"
and the ones who want to join should detect it when they ask for the games in progress list.
In the games in progress list you just select the game number (showed at the left side) you want to join.
-At this moment, network synch is refreshed 3 times per second, I would like to know if this is enough ,too much or not enough :)
-If the actual host leave, the game should keep running...
-Also I would like to know "how good" you feel the game, I mean, do you like player's movement as it is right now?
Please if you do test on your own without me,.. let me know how it comes...:)
Reply here for testing...
The file (600kb):
http://www.freewebs.com/tecno-itb/3Players_Net.zip
(right click -> Save target as )
Really thanks for the help :)
Paolo.
pd, also if someone (someway) can do a test over a 2 or 3 LAN machines, it would be great!
A nice thing in this demo (and surely the comercial game) is it's using GNET (when possible) to detect games in progress.
So basically there is no need to write a IP or anything like that, but if GNET isn't detected then the "old way" is there too.
This demo only contain the code to move the players around smoothly, and correctly rotate them.
You will also see there is a blue box over each player, this should represent where the camera is pointing to (later it will be a "gun")
----------------------------------
controls:
Arrows -----> move
right Ctrl -----> run
Page Down -----> duck / stand (toggle)
P ------> pause the game in case you want to move the mouse outside of the window
W ------> wireframe view (toggle)
For the ones who want to INVERT THE MOUSE, you will see there is a "KeysConfig.ini" file, open it and change the line where says "NO" to "YES" (in capital letters)
-----------------------------------
A little overview of how it should work:
-When you launch the game you will be asked by a Player name.
-Then, 3 options are shown: 1-host , 2-join a game listed in GNET , 3-write a IP to contact the host (old way)
If you decide to Host a game, your game should be inmediately listed in GNET as
"Tecno Level_A yourIP"
and the ones who want to join should detect it when they ask for the games in progress list.
In the games in progress list you just select the game number (showed at the left side) you want to join.
-At this moment, network synch is refreshed 3 times per second, I would like to know if this is enough ,too much or not enough :)
-If the actual host leave, the game should keep running...
-Also I would like to know "how good" you feel the game, I mean, do you like player's movement as it is right now?
Please if you do test on your own without me,.. let me know how it comes...:)
Reply here for testing...
The file (600kb):
http://www.freewebs.com/tecno-itb/3Players_Net.zip
(right click -> Save target as )
Really thanks for the help :)
Paolo.
pd, also if someone (someway) can do a test over a 2 or 3 LAN machines, it would be great!