animacions noves per al jugador2,
cada jugador te el seu fitxer d'animacions per separat
This commit is contained in:
@@ -204,9 +204,12 @@ void Game::setResources() {
|
||||
player_textures_.push_back(player2_textures);
|
||||
|
||||
// Animaciones -- Jugador
|
||||
player_animations_.clear();
|
||||
player_animations_.emplace_back(Resource::get()->getAnimation("player.ani"));
|
||||
player_animations_.emplace_back(Resource::get()->getAnimation("player_power.ani"));
|
||||
player1_animations_.clear();
|
||||
player1_animations_.emplace_back(Resource::get()->getAnimation("player1.ani"));
|
||||
player1_animations_.emplace_back(Resource::get()->getAnimation("player_power.ani"));
|
||||
player2_animations_.clear();
|
||||
player2_animations_.emplace_back(Resource::get()->getAnimation("player2.ani"));
|
||||
player2_animations_.emplace_back(Resource::get()->getAnimation("player_power.ani"));
|
||||
|
||||
// Animaciones -- Items
|
||||
item_animations_.clear();
|
||||
@@ -1613,7 +1616,7 @@ void Game::initPlayers(Player::Id player_id) {
|
||||
.demo = demo_.enabled,
|
||||
.play_area = ¶m.game.play_area.rect,
|
||||
.texture = player_textures_.at(0),
|
||||
.animations = player_animations_,
|
||||
.animations = player1_animations_,
|
||||
.hi_score_table = &Options::settings.hi_score_table,
|
||||
.glowing_entry = &Options::settings.glowing_entries.at(static_cast<int>(Player::Id::PLAYER1) - 1),
|
||||
.stage_info = stage_manager_.get()};
|
||||
@@ -1640,7 +1643,7 @@ void Game::initPlayers(Player::Id player_id) {
|
||||
.demo = demo_.enabled,
|
||||
.play_area = ¶m.game.play_area.rect,
|
||||
.texture = player_textures_.at(1),
|
||||
.animations = player_animations_,
|
||||
.animations = player2_animations_,
|
||||
.hi_score_table = &Options::settings.hi_score_table,
|
||||
.glowing_entry = &Options::settings.glowing_entries.at(static_cast<int>(Player::Id::PLAYER2) - 1),
|
||||
.stage_info = stage_manager_.get()};
|
||||
|
||||
Reference in New Issue
Block a user