la classe Texture ja pot tindre un numero indefinit de paletes 😌

This commit is contained in:
2024-07-25 10:13:20 +02:00
parent 073dd2a904
commit 1a00a08300
5 changed files with 60 additions and 23 deletions

View File

@@ -454,6 +454,7 @@ void Game::loadMedia()
// Texturas - Player1
Texture *player1 = new Texture(renderer, asset->get("player1.gif"));
player1->addPalette(asset->get("player1_pal1.gif"));
player1Textures.push_back(player1);
Texture *player1Power = new Texture(renderer, asset->get("player1_power.gif"));