Class: Phaser::Animation

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/phaser/animation/animation.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.generate_frame_names(args = {}) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/opal/phaser/animation/animation.rb', line 18

def self.generate_frame_names(args = {})
  prefix        = args[:prefix]
  start_num     = args[:start_num]
  stop_num      = args[:stop_num]
  suffix        = args[:suffix, ""]
  zeros_padding = args[:zeros_padding, 0]
  
  `Phaser.Animation.generateFrameNames(prefix, start_num, stop_num, suffix, zeros_padding)`
end

Instance Method Details

#loop=(bool) ⇒ Object



14
15
16
# File 'lib/opal/phaser/animation/animation.rb', line 14

def loop=(bool)
  `#@native.loop = bool`
end