forked from jaildesigner-jailgames/jaildoctors_dilemma
Actualizada la pantalla de carga/titulo
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.1 KiB |
BIN
data/title/loading_screen_bn.png
Normal file
BIN
data/title/loading_screen_bn.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
data/title/loading_screen_color.png
Normal file
BIN
data/title/loading_screen_color.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
@@ -101,7 +101,7 @@ void Demo::checkEventHandler()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
section.name == SECTION_PROG_TITLE;
|
section.name = SECTION_PROG_TITLE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Director::Director(std::string path)
|
|||||||
section.name = SECTION_PROG_LOGO;
|
section.name = SECTION_PROG_LOGO;
|
||||||
section.subsection = SUBSECTION_LOGO_TO_INTRO;
|
section.subsection = SUBSECTION_LOGO_TO_INTRO;
|
||||||
|
|
||||||
section.name = SECTION_PROG_GAME;
|
//section.name = SECTION_PROG_GAME;
|
||||||
|
|
||||||
// Crea el objeto que controla los ficheros de recursos
|
// Crea el objeto que controla los ficheros de recursos
|
||||||
asset = new Asset(path.substr(0, path.find_last_of("\\/")));
|
asset = new Asset(path.substr(0, path.find_last_of("\\/")));
|
||||||
@@ -621,8 +621,8 @@ bool Director::setFileList()
|
|||||||
asset->add("/../data/logo/seagull.png", t_bitmap);
|
asset->add("/../data/logo/seagull.png", t_bitmap);
|
||||||
|
|
||||||
// Intro
|
// Intro
|
||||||
asset->add("/../data/title/loading_screen1.png", t_bitmap);
|
asset->add("/../data/title/loading_screen_bn.png", t_bitmap);
|
||||||
asset->add("/../data/title/loading_screen2.png", t_bitmap);
|
asset->add("/../data/title/loading_screen_color.png", t_bitmap);
|
||||||
|
|
||||||
return asset->check();
|
return asset->check();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ Intro::Intro(SDL_Renderer *renderer, Screen *screen, Asset *asset)
|
|||||||
|
|
||||||
// Reserva memoria para los punteros
|
// Reserva memoria para los punteros
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
loadingScreenTexture1 = new Texture(renderer, asset->get("loading_screen1.png"));
|
loadingScreenTexture1 = new Texture(renderer, asset->get("loading_screen_bn.png"));
|
||||||
loadingScreenTexture2 = new Texture(renderer, asset->get("loading_screen2.png"));
|
loadingScreenTexture2 = new Texture(renderer, asset->get("loading_screen_color.png"));
|
||||||
sprite1 = new Sprite(0, 0, loadingScreenTexture1->getWidth(), loadingScreenTexture1->getHeight(), loadingScreenTexture1, renderer);
|
sprite1 = new Sprite(0, 0, loadingScreenTexture1->getWidth(), loadingScreenTexture1->getHeight(), loadingScreenTexture1, renderer);
|
||||||
sprite2 = new Sprite(0, 0, loadingScreenTexture2->getWidth(), loadingScreenTexture2->getHeight(), loadingScreenTexture2, renderer);
|
sprite2 = new Sprite(0, 0, loadingScreenTexture2->getWidth(), loadingScreenTexture2->getHeight(), loadingScreenTexture2, renderer);
|
||||||
loadingSound1 = JA_LoadMusic(asset->get("loading_sound1.ogg").c_str());
|
loadingSound1 = JA_LoadMusic(asset->get("loading_sound1.ogg").c_str());
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Asset *asset)
|
|||||||
|
|
||||||
// Reserva memoria para los punteros
|
// Reserva memoria para los punteros
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
texture = new Texture(renderer, asset->get("loading_screen2.png"));
|
texture = new Texture(renderer, asset->get("loading_screen_color.png"));
|
||||||
sprite = new Sprite(0, 0, texture->getWidth(), texture->getHeight(), texture, renderer);
|
sprite = new Sprite(0, 0, texture->getWidth(), texture->getHeight(), texture, renderer);
|
||||||
text = new Text(asset->get("smb2.png"), asset->get("smb2.txt"), renderer);
|
text = new Text(asset->get("smb2.png"), asset->get("smb2.txt"), renderer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user