Sha256: 0cfc368aa03752e9ca29b235c781979287ca58449cc92fc6039f54c18dbac95a

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

class CrossHair < Cursor

  def initialize(opts={})
    super
    set_image 'crosshair-1.png', opts
    @z = ZOrder::CrossHair
    interpolate(self, :angle, :init => 0, :end => 359, :duration => 2, :loop => true)
    interpolate(self, :factor, :init => 10, :end => 0.5, :duration => 3)
    #interpolate(self, :factor_y, :init => 1, :end => 0.5, :duration => 0.6, :loop => true, :bounce => true)
  end

  def update
    super
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
missile-command-ruby-0.0.8 lib/cross_hair.rb