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
+11
View File
@@ -0,0 +1,11 @@
require_relative 'base'
class Force < Enemy
load 'assets/images/force.png', 21, 32, 1.7
def initialize(x, y)
super
@w = 20
@h = 20
end
end