Sha256: ebf5ea275ce9fdbd7336a629f638dabbd5db3cbc49644416f21bd1295836cae5
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
require_relative 'pickup.rb' class BombPack < Pickup def get_image Gosu::Image.new("#{MEDIA_DIRECTORY}/bomb_pack.png", :tileable => true) end def draw # @image.draw_rot(@x, @y, ZOrder::Pickups, @y, 0.5, 0.5, 1, 1) draw_rot() end def collected_by_player player player.bombs += 3 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
line-em-up-0.3.6 | line-em-up/models/bomb_pack.rb |
line-em-up-0.3.5 | line-em-up/models/bomb_pack.rb |