I think I may have put together a system that is a bit extreme, however I thought I would run it by the community to see what you all think.

The game will be a multiplayer game with multiple zones, so I thought having a pre, intermediate and post level loading system would be necessary.

Code:
// Includes
#include <acknex.h>
#include <default.c>

// Post procedures after the level loads.
int post_level_load(int level) // int level passed from do_load_level(), in this source file.
{
	fps_max = 60; // Save on processor load.
	fps_lock = ON;	// Lock it down.
	   switch(level)
	   {
	   	case 1:
			wait(2);
	   	break;
	   	
	   	default:
	   	printf("Error: The level loaded, but post processing failed!");
	   	break;
	}
}

// Load the level.
int do_load_level(int level) // int level is handed off by do_pre_load_level() in this source file.
{
	   switch(level)
	   {
	   	case 1:
	   	level_load("prison.wmb");
	   	post_level_load(level);	   	
	   	break;
	   	
	   	default:
	   	printf("Error: trying to load a level that does not exist.");
	   	break;
	}
}

// Add in generic level optimization code here, also will be used for multiplayer capabilities.
int do_pre_load_level(int level) // Level is passed in by main() in main.c
{
	video_mode = 11; // 1200x1600 resolution 
	do_load_level(level);	
}


Again this might be a bit extreme or it may not be, if you have any pointers, I would be glad to listen!

-Snow

Edit:

Also wondering if 3DGS has logging facilities? I would like to log when a level is loaded and optimized.

Last edited by snow4dayz; 02/23/09 09:32.