nou: bales de colors diferents per a cada jugador

This commit is contained in:
2025-09-26 20:37:00 +02:00
parent 0459b39366
commit 83871273ec
9 changed files with 118 additions and 39 deletions

View File

@@ -1635,6 +1635,7 @@ void Game::initPlayers(Player::Id player_id) {
.stage_info = stage_manager_.get()};
auto player1 = std::make_unique<Player>(config_player1);
player1->setBulletColors(Bullet::Color::YELLOW, Bullet::Color::GREEN);
player1->setScoreBoardPanel(Scoreboard::Id::LEFT);
player1->setName(Lang::getText("[SCOREBOARD] 1"));
player1->setGamepad(Options::gamepad_manager.getGamepad(Player::Id::PLAYER1).instance);
@@ -1655,6 +1656,7 @@ void Game::initPlayers(Player::Id player_id) {
.stage_info = stage_manager_.get()};
auto player2 = std::make_unique<Player>(config_player2);
player2->setBulletColors(Bullet::Color::RED, Bullet::Color::PURPLE);
player2->setScoreBoardPanel(Scoreboard::Id::RIGHT);
player2->setName(Lang::getText("[SCOREBOARD] 2"));
player2->setGamepad(Options::gamepad_manager.getGamepad(Player::Id::PLAYER2).instance);