Anarkhia Update

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
anarkavre
Posts: 27
Joined: Mon Mar 08, 2004 9:57 pm
Location: PA
Contact:

Anarkhia Update

Post by anarkavre »

schick has joined the development team and is helping on the programming. We are currently working together to create a set of classes for the engine. Here is the code of the current main and the use of the CAnarkhiaEngine class.

Code: Select all

int main(int argc, char *argv[]) {
	int fps, lastfps = 0, lasttick = 0;
	
	engine = CAnarkhiaEngine::CreateInstance();

	engine->Initialise(&Draw);

	engine->GetConsole()->AddConsoleCommand(cmds[0]);
	engine->GetConsole()->AddConsoleCommand(cmds[1]);

	while (engine->Run()) {
		fps = engine->GetFPS();

		if (fps != lastfps) {
			str = fps;
			str += " FPS";
			lastfps = fps;
		}

		if (engine->GetTime() > lasttick + 10)
			lasttick = engine->GetTime();
	}

	CAnarkhiaEngine::DestroyInstance();

	return 0;
}
The website for the project is at http://anarkhia.webhop.net/.
"Without curiosity and knowledge, the mind is a vast void. Without the mind, curiosity and knowledge are nonexistent."
Post Reply