Class: CrossHair

Inherits:
Cursor
  • Object
show all
Defined in:
lib/cross_hair.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ CrossHair

Returns a new instance of CrossHair.



3
4
5
6
7
8
9
10
# File 'lib/cross_hair.rb', line 3

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

Instance Method Details

#updateObject



12
13
14
# File 'lib/cross_hair.rb', line 12

def update
  super
end