- Mòdul del logo de 'JAILGAMES' fet
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
#include "string.h"
|
||||
|
||||
#include "m_game.h"
|
||||
#include "m_logo.h"
|
||||
|
||||
#define M_LOGO 0
|
||||
#define M_GAME 1
|
||||
int current_module = M_LOGO;
|
||||
|
||||
void game::init()
|
||||
{
|
||||
@@ -18,12 +23,19 @@ void game::init()
|
||||
}
|
||||
|
||||
draw::loadPalette("test.gif");
|
||||
game::setUpdateTicks(64);
|
||||
|
||||
modules::game::init();
|
||||
modules::logo::init();
|
||||
}
|
||||
|
||||
bool game::loop()
|
||||
{
|
||||
return modules::game::loop();
|
||||
switch(current_module)
|
||||
{
|
||||
case M_LOGO:
|
||||
if (!modules::logo::loop()) { modules::game::init(); current_module = M_GAME; }
|
||||
break;
|
||||
case M_GAME:
|
||||
return modules::game::loop();
|
||||
};
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user