Still working on the BIG FUCKING CONVERSION...

This commit is contained in:
2021-05-10 18:53:31 +02:00
parent 717c5715e9
commit 2ad5241005
21 changed files with 134 additions and 143 deletions

View File

@@ -1,10 +1,9 @@
#include "MortController.h"
#include "const.h"
MortController::MortController(DrawManager *p_drawManager, InputManager *p_inputManager, MusicManager *p_musicManager) {
MortController::MortController(DrawManager *p_drawManager, InputManager *p_inputManager) {
drawManager = p_drawManager;
inputManager = p_inputManager;
musicManager = p_musicManager;
}
MortController::~MortController(void) {
@@ -13,7 +12,7 @@ MortController::~MortController(void) {
bool MortController::Init() {
fondo = drawManager->LoadBitmap("mort.gif");
cursor = drawManager->LoadFont("cursor.gif");
musicManager->Load( "mus5.mp3");
music_load( "mus5.mp3");
return true;
}
@@ -23,7 +22,7 @@ void MortController::Go(GameInfo *gameInfo) {
if ( !Init() ) { salir = true; gameInfo->estado = ESTADO_SALIR; }
musicManager->Play(-1);
music_play(-1);
drawManager->Blit(0,0, fondo);
drawManager->FadeIn();