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