Basic arena working that lets me work on the boss fight system quicker.
This commit is contained in:
parent
7f10c5b3d7
commit
a578c49a77
11 changed files with 110 additions and 217 deletions
|
|
@ -53,7 +53,6 @@ void System::lighting() {
|
|||
light.update_fow(position.location, lightsource);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void System::generate_paths() {
|
||||
|
|
@ -231,7 +230,6 @@ void System::death() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void System::combat(int attack_id) {
|
||||
auto& level = GameDB::current_level();
|
||||
auto& collider = *level.collision;
|
||||
|
|
@ -671,7 +669,7 @@ void System::spawn_attack(World& world, int attack_id, DinkyECS::Entity enemy) {
|
|||
auto effect = ritual.element == FIRE ? "burning_animation" : "lightning_animation";
|
||||
|
||||
auto effect_id = world.entity();
|
||||
world.set<Sprite>(effect_id, {effect, 256, 256, 1.0});
|
||||
world.set<Sprite>(effect_id, {effect, 256, 256});
|
||||
world.set<Temporary>(effect_id, {true});
|
||||
|
||||
auto shader = shaders::get(ritual.element == FIRE ? "flame" : "lightning");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue