Class: Phaser::Sprite

Inherits:
PIXI::Sprite
  • Object
show all
Includes:
Native
Defined in:
lib/opal/phaser/game_objects/sprite.rb

Instance Method Summary collapse

Instance Method Details

#auto_cull=(bool) ⇒ Object



33
34
35
# File 'lib/opal/phaser/game_objects/sprite.rb', line 33

def auto_cull=(bool)
  `#@native.autoCull = bool`
end

#check_world_bounds=(bool) ⇒ Object



37
38
39
# File 'lib/opal/phaser/game_objects/sprite.rb', line 37

def check_world_bounds=(bool)
  `#@native.checkWorldBounds = bool`
end

#frame_name=(name) ⇒ Object



29
30
31
# File 'lib/opal/phaser/game_objects/sprite.rb', line 29

def frame_name=(name)
  `#@native.frameName = name`
end

#input_enabled=(bool) ⇒ Object



25
26
27
# File 'lib/opal/phaser/game_objects/sprite.rb', line 25

def input_enabled=(bool)
  `#@native.inputEnabled = bool`
end

#on(type, context, &block) ⇒ Object



51
52
53
# File 'lib/opal/phaser/game_objects/sprite.rb', line 51

def on(type, context, &block)
  events.on(type, context, &block)
end

#update_cropObject



41
42
43
# File 'lib/opal/phaser/game_objects/sprite.rb', line 41

def update_crop
  `#@native.updateCrop()`
end