Sha256: b292c941b621f96ad6bd65a8d681b08fc6410267b4becc1fea6b352b3a7d2a60
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
class PirateGame::Image < PirateGame::WavingItem def initialize shoes, image, top, left super 0, 10, 4 @shoes = shoes @image = image @top = top @left = left end def animate frame top_offset, left_offset = waving_offset frame @ship.move @top + top_offset, @left + left_offset end def draw @ship = @shoes.image @image, top: @top, left: @left end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pirate_game-0.0.1 | lib/pirate_game/image.rb |