Class: Phaser::Sprite
- Inherits:
-
Object
- Object
- Phaser::Sprite
- Includes:
- Native
- Defined in:
- lib/opal/phaser/game_objects/sprite.rb
Instance Method Summary collapse
- #auto_cull=(bool) ⇒ Object
- #check_world_bounds=(bool) ⇒ Object
- #frame_name=(name) ⇒ Object
- #input_enabled=(bool) ⇒ Object
- #on(type, context, &block) ⇒ Object
- #smoothed=(bool) ⇒ Object
Instance Method Details
#auto_cull=(bool) ⇒ Object
46 47 48 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 46 def auto_cull=(bool) `#@native.autoCull = bool` end |
#check_world_bounds=(bool) ⇒ Object
50 51 52 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 50 def check_world_bounds=(bool) `#@native.checkWorldBounds = bool` end |
#frame_name=(name) ⇒ Object
42 43 44 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 42 def frame_name=(name) `#@native.frameName = name` end |
#input_enabled=(bool) ⇒ Object
34 35 36 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 34 def input_enabled=(bool) `#@native.inputEnabled = bool` end |
#on(type, context, &block) ⇒ Object
61 62 63 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 61 def on(type, context, &block) events.on(type, context, &block) end |
#smoothed=(bool) ⇒ Object
38 39 40 |
# File 'lib/opal/phaser/game_objects/sprite.rb', line 38 def smoothed=(bool) `#@native.smoothed = bool` end |