- Afegit modul de sequencia (història).

- Reemplaçades músiques per MIDIs
This commit is contained in:
2019-12-13 17:36:59 +01:00
parent 60af56270f
commit 6ee8830244
12 changed files with 306 additions and 31 deletions

View File

@@ -7,14 +7,6 @@
#include <stdlib.h>
#include <string>
#define SENSE_OPCIO -1
#define OPCIO_FACIL 0
#define OPCIO_NORMAL 1
#define OPCIO_DIFICIL 2
#define OPCIO_PEPE 0
#define OPCIO_ROSITA 1
#define OPCIO_JOB 2
ModuleSelect::ModuleSelect(Info* info) {
this->info = info;
}
@@ -86,9 +78,9 @@ int ModuleSelect::Go() {
while (!JG_ShouldUpdate()) { JI_Update(); }
}
int opcio_seleccionada = OPCIO_FACIL;
int opcio_seleccionada = this->info->dificultat;
int opcio_triada = SENSE_OPCIO;
int personatge_seleccionat = OPCIO_PEPE;
int personatge_seleccionat = this->info->personatge;
bool fletxa_amunt_pulsada = false;
bool fletxa_avall_pulsada = false;
bool fletxa_esquerra_pulsada = false;
@@ -172,14 +164,9 @@ int ModuleSelect::Go() {
if (JG_Quitting()) {
return ESTAT_EIXIR;
}
else {
/* switch (opcio_triada) {
case OPCIO_TIMEATTACK: return ESTAT_LOGO; break;
case OPCIO_WORLDTOUR: return ESTAT_MENU; break;
case OPCIO_CLASSICMODE: return ESTAT_MENU; break;
case OPCIO_OPTIONS: return ESTAT_MENU; break;
}*/
return ESTAT_JOC;
} else {
this->info->dificultat = opcio_triada;
this->info->personatge = personatge_seleccionat;
return ESTAT_SEQUENCIA;
}
}