Class: MovieMaker::Action::Pulsate
- Inherits:
-
SpriteAction
- Object
- SpriteAction
- MovieMaker::Action::Pulsate
- Defined in:
- lib/movie_maker/action.rb
Overview
PULSATE
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
Attributes inherited from SpriteAction
#background, #image, #screen, #sprite, #start_at, #stop_at
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Pulsate
constructor
A new instance of Pulsate.
- #setup ⇒ Object
- #update(time) ⇒ Object
Methods inherited from SpriteAction
#finalize, #finalized?, #playing?, #started?
Constructor Details
#initialize(options = {}) ⇒ Pulsate
Returns a new instance of Pulsate.
272 273 274 275 276 |
# File 'lib/movie_maker/action.rb', line 272 def initialize( = {}) super() @pulse_duration = [:duration] || 1 @times = [:times] || 1 end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
271 272 273 |
# File 'lib/movie_maker/action.rb', line 271 def direction @direction end |
Instance Method Details
#setup ⇒ Object
278 279 280 |
# File 'lib/movie_maker/action.rb', line 278 def setup @setup_done = true end |
#update(time) ⇒ Object
282 283 284 |
# File 'lib/movie_maker/action.rb', line 282 def update(time) setup unless @setup_done end |