Project REDIDIT.......
Posted: Thu May 21, 2009 3:01 pm
This is the start of the new project.
It is again a multiplayer flight sim that will be created using TV3D game library.
For once we will try and structure the game a little better than previous attempts.
A "Game State Arbitrator" will be used to provide a bit of structure within the game code.
It also has the advantage that one can easily and clearly add sections to the structure of the game to expand it.
It allows for a clean way to jump in multiple directions depending upon what is selected from a menu.
The general idea is something like:
This will allow different members to work on their own particular area of code, and the only thing that has to be checked is that a person returns a correct return value to the Game State Arbitration code.
The first step will be to create a working version of the Arbitrator so that multiple people can start working on the code.
The goal will be to get the Arbitrator up and running by the end of the coming weekend with dummy content active within the functions, so that we have a WORKING skeleton of the program to work with.
Any questions or suggestions .... please post them.
It is again a multiplayer flight sim that will be created using TV3D game library.
For once we will try and structure the game a little better than previous attempts.
A "Game State Arbitrator" will be used to provide a bit of structure within the game code.
It also has the advantage that one can easily and clearly add sections to the structure of the game to expand it.
It allows for a clean way to jump in multiple directions depending upon what is selected from a menu.
The general idea is something like:
Code: Select all
// Game State Arbitrator
// the return values from each of the functions will redirect the program flow through the arbitrator
#define SETUPWINDOW 0
#define SETUPLIBRARY 1
#define ENTRYMENU 2
#define SETUPMENU 3
#define HOSTMENU 4
#define CLIENTMENU 5
#define GAMELOOP 6
int iGameState = 0;
do
{
switch(iGameState){
case SETUPWINDOW:
iGameState = SetupWindow();
break;
case SETUPLIBRARY:
iGameState = SetupLibrary();
break;
case ENTRYMENU:
iGameState = EntryMenu();
break;
case SETUPMENU:
iGameState = SetupMenu();
break;
case HOSTMENU:
iGameState = HostMenu();
break;
case CLIENTMENU:
iGameState = ClientMenu();
break;
case GAMELOOP:
iGameState = GameLoop();
break;
default:
iGameState = 99;
CleanUp();
break;
}
}while(iGameState != 99);
This will allow different members to work on their own particular area of code, and the only thing that has to be checked is that a person returns a correct return value to the Game State Arbitration code.
The first step will be to create a working version of the Arbitrator so that multiple people can start working on the code.
The goal will be to get the Arbitrator up and running by the end of the coming weekend with dummy content active within the functions, so that we have a WORKING skeleton of the program to work with.
Any questions or suggestions .... please post them.
