Class: CrossHair
- Inherits:
-
Cursor
- Object
- Cursor
- CrossHair
- Defined in:
- lib/cross_hair.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ CrossHair
constructor
A new instance of CrossHair.
- #update ⇒ Object
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
#update ⇒ Object
12 13 14 |
# File 'lib/cross_hair.rb', line 12 def update super end |