Refactor enemy system: enhance EnemyAI with attack cooldown, update Force class to handle damage, and improve EnemyHandler for enemy removal; add OccamsRazor weapon with attack mechanics.

This commit is contained in:
2026-03-30 19:39:43 +00:00
parent 60a89ed128
commit 0369d24338
9 changed files with 93 additions and 37 deletions
+5
View File
@@ -3,6 +3,11 @@ require_relative 'force'
class EnemyHandler
def initialize
@enemies = []
$bus.on(:enemy_died) do |enemy|
$bus.remove_owner(enemy)
@enemies.delete(enemy)
end
end
def update(dt)