Setting up to have a fire attack and lightning attack.
This commit is contained in:
parent
787be78a69
commit
58981fd8ed
3 changed files with 82 additions and 1 deletions
|
@ -238,7 +238,7 @@ void System::combat(GameLevel &level) {
|
|||
};
|
||||
|
||||
if(result.player_did > 0) {
|
||||
auto effect = shaders::get("flame");
|
||||
auto effect = shaders::get("lightning");
|
||||
world.set<SpriteEffect>(enemy.entity, {100, effect});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue