Enhance enemy AI and introduce Force class: update speed dynamics based on Lorentz field effects, refactor enemy spawning to utilize Force, and add sprite loading for Force.

This commit is contained in:
2026-03-30 16:31:08 +00:00
parent ccadcf660c
commit 60a89ed128
7 changed files with 61 additions and 13 deletions
+2
View File
@@ -32,6 +32,7 @@ class LorentzField
$bus.emit(:consume, :lorentz_field, 1)
@active = true
@time = 0
$bus.emit(:lorentz_field)
end
def update(dt)
@@ -41,6 +42,7 @@ class LorentzField
if @time >= BASE_TIME
@time = 0
@active = false
$bus.emit(:lorentz_field_end)
end
end