feat(fireworks): burst radial blanc al explotar enemic + tuning
This commit is contained in:
1 parent
56ce1a3236
commit
0cc1f7623a
5 files changed
+18
-5
No files matched your search
@@ -76,6 +76,10 @@ namespace Systems::Collision {
|
||||
Defaults::Physics::Debris::ENEMY_LIFETIME,
|
||||
Defaults::Physics::Debris::ENEMY_FRICTION,
|
||||
Defaults::Physics::Debris::ENEMY_SEGMENT_MULTIPLIER);
|
||||
|
||||
// Firework burst radial des del centro de l'enemic (efecte adicional al debris).
|
||||
// No heretem color: el burst usa el blanc per defecte per a un feel més lluminós.
|
||||
ctx.firework_manager.spawn(ENEMY_POS);
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "core/defaults.hpp"
|
||||
#include "core/system/game_config.hpp"
|
||||
#include "game/effects/debris_manager.hpp"
|
||||
#include "game/effects/firework_manager.hpp"
|
||||
#include "game/effects/floating_score_manager.hpp"
|
||||
#include "game/entities/bullet.hpp"
|
||||
#include "game/entities/enemy.hpp"
|
||||
@@ -36,6 +37,7 @@ namespace Systems::Collision {
|
||||
std::array<int, 2>& score_per_player;
|
||||
std::array<int, 2>& lives_per_player;
|
||||
Effects::DebrisManager& debris_manager;
|
||||
Effects::FireworkManager& firework_manager;
|
||||
Effects::FloatingScoreManager& floating_score_manager;
|
||||
const GameConfig::MatchConfig& match_config;
|
||||
// Trigger de muerte del jugador (GameScene::tocado).
|
||||
|
||||
Reference in new issue
Block a user