- [NEW] Módul "info"retocat
This commit is contained in:
23
main.cpp
23
main.cpp
@@ -37,19 +37,18 @@ int main( int argc, char* args[] ) {
|
||||
JD8_Init("Aventures En Egipte");
|
||||
JA_Init(48000, SDL_AUDIO_S16, 2);
|
||||
|
||||
Info info;
|
||||
info.num_habitacio = 1;
|
||||
info.num_piramide = 255;
|
||||
info.diners = 0;
|
||||
info.diamants = 0;
|
||||
info.vida = 5;
|
||||
info.momies = 0;
|
||||
info.nou_personatge = false;
|
||||
info.pepe_activat = false;
|
||||
info::num_habitacio = 1;
|
||||
info::num_piramide = 255;
|
||||
info::diners = 0;
|
||||
info::diamants = 0;
|
||||
info::vida = 5;
|
||||
info::momies = 0;
|
||||
info::nou_personatge = false;
|
||||
info::pepe_activat = false;
|
||||
|
||||
FILE* ini = fopen("trick.ini", "rb");
|
||||
if (ini != NULL) {
|
||||
info.nou_personatge = true;
|
||||
info::nou_personatge = true;
|
||||
fclose(ini);
|
||||
}
|
||||
|
||||
@@ -59,13 +58,13 @@ int main( int argc, char* args[] ) {
|
||||
switch (gameState) {
|
||||
case 0:
|
||||
ModuleGame* moduleGame;
|
||||
moduleGame = new ModuleGame( &info );
|
||||
moduleGame = new ModuleGame();
|
||||
gameState = moduleGame->Go();
|
||||
delete moduleGame;
|
||||
break;
|
||||
case 1:
|
||||
ModuleSequence* moduleSequence;
|
||||
moduleSequence = new ModuleSequence( &info );
|
||||
moduleSequence = new ModuleSequence();
|
||||
gameState = moduleSequence->Go();
|
||||
delete moduleSequence;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user