summaryrefslogtreecommitdiffhomepage
path: root/app/systems/death.rb
diff options
context:
space:
mode:
authorarngo <[email protected]>2021-12-26 22:30:44 -0500
committerarngo <[email protected]>2021-12-26 22:30:44 -0500
commit930802e49e33c87ef0fd2f102b9205a4098878d3 (patch)
tree56cbf22ebbb4b16ac037eb2f525ca15d5656b96f /app/systems/death.rb
parent70b2499a8753331b68fb7a61a8882c9ff0b017d8 (diff)
downloadSteelWings-930802e49e33c87ef0fd2f102b9205a4098878d3.tar.gz
SteelWings-930802e49e33c87ef0fd2f102b9205a4098878d3.zip
implement score ui
Diffstat (limited to 'app/systems/death.rb')
-rw-r--r--app/systems/death.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/systems/death.rb b/app/systems/death.rb
index edeb493..ae02dec 100644
--- a/app/systems/death.rb
+++ b/app/systems/death.rb
@@ -5,6 +5,8 @@ FF::Scn::BoidRules.add(
hp.entities[0].components.each do |manager, manager_array|
if manager.equal?(FF::Cmp::SingletonPlayer)
FF::Sys::EndGame.call
+ elsif manager.equal?(FF::Cmp::SingletonEnemyTeam)
+ FF::Sys::Score.call
end
next if manager.equal?(FF::Cmp::Hp)
manager_array.reverse_each do |component|