Files
thepool/source/main.cpp

29 lines
548 B
C++

#include "jgame.h"
#include "jdraw.h"
#include "editor.h"
#include "console.h"
#include "string.h"
#include "m_game.h"
void game::init()
{
if (game::getParams(1) && strcmp(game::getParams(1), "editor")==0) editor::setDevMode();
if (editor::isDevMode())
draw::init("The Pool", 520, 240, 3);
else {
draw::init("The Pool", 320, 240, 3);
console::init();
}
draw::loadPalette("test.gif");
game::setUpdateTicks(64);
modules::game::init();
}
bool game::loop()
{
return modules::game::loop();
}