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:
@@ -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
|
||||
Reference in New Issue
Block a user