class Core::Game::MapParticle
Attributes
follow[RW]
xoff[RW]
yoff[RW]
Public Class Methods
new(x, y, effect)
click to toggle source
# File lib/game/map/map_particle.rb, line 6 def initialize(x, y, effect) @emitter = Core::Particles.new(effect, x, y) end
Public Instance Methods
draw(x, y)
click to toggle source
# File lib/game/map/map_particle.rb, line 22 def draw(x, y) @emitter.draw(x, y) end
update()
click to toggle source
# File lib/game/map/map_particle.rb, line 18 def update @emitter.update end
x=(x)
click to toggle source
# File lib/game/map/map_particle.rb, line 10 def x=(x) @emitter.x = x end
y=(y)
click to toggle source
# File lib/game/map/map_particle.rb, line 14 def y=(y) @emitter.y = y end