- [FIX] Arreglats els errors de la paleta de fósforo
- [CHG] Augmentades les probabilitats de una Cat's Life - [NEW] Informació dels renderers al arrancar - [FIX] Quan apareix un dialeg ja no es queda el só de caminar sonant de fondo - [NEW] Quan apareix un dialeg i sona una fanfarria, la música se pausa
This commit is contained in:
BIN
data/fosforo.gif
BIN
data/fosforo.gif
Binary file not shown.
|
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B |
@@ -2435,13 +2435,13 @@ namespace actor
|
||||
int partsCollected = 0;
|
||||
bool roomVisited[MAX_ROOMS];
|
||||
int livesLost = 0;
|
||||
int catsLifeOdds = 5;
|
||||
int catsLifeOdds = 2;
|
||||
uint32_t start_time = 0;
|
||||
|
||||
void reset()
|
||||
{
|
||||
partsCollected = livesLost = 0;
|
||||
catsLifeOdds = 5;
|
||||
catsLifeOdds = 2;
|
||||
for (int i = 0; i < MAX_ROOMS; ++i)
|
||||
roomVisited[i] = false;
|
||||
start_time = SDL_GetTicks();
|
||||
|
||||
@@ -93,6 +93,18 @@ namespace draw
|
||||
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
|
||||
sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, screen_width, screen_height);
|
||||
|
||||
SDL_RendererInfo info;
|
||||
const int num_render_drivers = SDL_GetNumRenderDrivers();
|
||||
printf("Available renderers:\n");
|
||||
for (int i=0; i<num_render_drivers; ++i)
|
||||
{
|
||||
SDL_GetRenderDriverInfo(i, &info);
|
||||
printf(" - %i: %s\n", i, info.name);
|
||||
}
|
||||
|
||||
SDL_GetRendererInfo(sdl_renderer, &info);
|
||||
printf("\nRenderer: %s\n", info.name);
|
||||
|
||||
if (screen_fullscreen)
|
||||
{
|
||||
SDL_ShowCursor(false);
|
||||
|
||||
@@ -296,6 +296,7 @@ namespace modules
|
||||
if ( (controller::pressed(KEY_MENU)) || (controller::pressed(KEY_PICK)) || (controller::pressed(KEY_JUMP)) )
|
||||
{
|
||||
missatge[0] = 0;
|
||||
audio::resumeMusic();
|
||||
return;
|
||||
}
|
||||
draw::color(BLACK);
|
||||
@@ -989,6 +990,8 @@ namespace modules
|
||||
|
||||
void setMissatge(const char *text)
|
||||
{
|
||||
actor::pauseWalkSound();
|
||||
audio::pauseMusic();
|
||||
strcpy(missatge, text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user