Sha256: a61a5b371fa29c8ff7d1e4ee44a656699d17cbecb1c066f185ed65e63858fafb

Contents?: true

Size: 526 Bytes

Versions: 6

Compression:

Stored size: 526 Bytes

Contents

require_relative 'pickup.rb'

class RocketLauncherPickup < Pickup

  NAME = 'rocket_launcher'

  def initialize(scale, screen_width, screen_height, x = nil, y = nil, options = {})
    @x = x || rand(screen_width)
    @y = y || 0
    super(scale, screen_width, screen_height, @x, @y, options)
  end

  def get_image
    Gosu::Image.new("#{MEDIA_DIRECTORY}/rocket_launcher.png")
  end

  # def draw
  # end

  # def update
  # end

  def collected_by_player player
    player.add_hard_point(RocketLauncherPickup::NAME)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
line-em-up-2.0.4 line-em-up/models/rocket_launcher_pickup.rb
line-em-up-2.0.3 line-em-up/models/rocket_launcher_pickup.rb
line-em-up-2.0.2 line-em-up/models/rocket_launcher_pickup.rb
line-em-up-2.0.1 line-em-up/models/rocket_launcher_pickup.rb
line-em-up-2.0.0 line-em-up/models/rocket_launcher_pickup.rb
line-em-up-0.4.0 line-em-up/models/rocket_launcher_pickup.rb