Quasi totes les músiques ficades. La imatge de mort també

This commit is contained in:
2016-02-19 23:14:06 +01:00
parent 8da6291d18
commit f00afcf9a2
7 changed files with 58 additions and 23 deletions

View File

@@ -2,6 +2,7 @@
#include "jgame.h"
#include "jdraw8.h"
#include "jsound.h"
#include "jinput.h"
#include "jfile.h"
@@ -47,6 +48,10 @@ ModuleGame::~ModuleGame(void) {
int ModuleGame::Go() {
this->Draw();
JS_LoadMusic(this->info->num_piramide==3 ? "00000008.xm" : (this->info->num_piramide==2 ? "00000007.xm" : "00000006.xm"));
JS_PlayMusic(-1);
JD8_FadeToPal( JD8_LoadPalette( "frames.gif" ) );
while (this->final == 0 && !JG_Quitting()) {
@@ -55,18 +60,22 @@ int ModuleGame::Go() {
this->Update();
}
JS_FadeOutMusic();
if( this->final == 1 ) {
this->info->num_habitacio++;
if( this->info->num_habitacio == 6 ) {
this->info->num_habitacio = 1;
this->info->num_piramide++;
}
}
} else if (this->final == 2) {
this->info->num_piramide = 100;
}
if( JG_Quitting() ) {
return -1;
} else {
if( this->info->num_habitacio == 1 ) {
if( this->info->num_habitacio == 1 || this->info->num_piramide == 100 ) {
return 1;
} else {
return 0;