afegides paletes per al segon jugador

This commit is contained in:
2024-07-25 14:13:02 +02:00
parent b29d9681f8
commit cff1df19c2
6 changed files with 10 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
data/gfx/player2_pal1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
data/gfx/player2_pal2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
data/gfx/player2_pal3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

View File

@@ -367,10 +367,17 @@ bool Director::setFileList()
asset->add(prefix + "/data/gfx/player1_pal1.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player1_pal2.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player1_pal3.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player2.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player2_pal1.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player2_pal2.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player2_pal3.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player.ani", t_data);
asset->add(prefix + "/data/gfx/player1_power.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player2_power.gif", t_bitmap);
asset->add(prefix + "/data/gfx/player_power.ani", t_data);
// Fuentes de texto

View File

@@ -472,6 +472,9 @@ void Game::loadMedia()
// Texturas - Player2
Texture *player2 = new Texture(renderer, asset->get("player2.gif"));
player2->addPalette(asset->get("player2_pal1.gif"));
player2->addPalette(asset->get("player2_pal2.gif"));
player2->addPalette(asset->get("player2_pal3.gif"));
player2Textures.push_back(player2);
Texture *player2Power = new Texture(renderer, asset->get("player2_power.gif"));