class PirateGame::WavingItem

Attributes

speed[RW]

Public Class Methods

new(seed, delta_x, delta_y) click to toggle source
# File lib/pirate_game/waving_item.rb, line 5
def initialize seed, delta_x, delta_y

  @seed = seed
  @delta_x = delta_x
  @delta_y = delta_y
  @speed = :normal
end

Public Instance Methods

waving_offset(frame) click to toggle source
# File lib/pirate_game/waving_item.rb, line 13
def waving_offset frame
  top_offset, left_offset =
    PirateGame::Boot.waving_offset frame, @seed, @delta_x, @delta_y, @speed
end