Class: Phaser::ScaleManager

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

Constant Summary collapse

EXACT_FIT =

A scale mode that stretches content to fill all available space

0
NO_SCALE =

A scale mode that prevents any scaling

1
SHOW_ALL =

A scale mode that shows the entire game while maintaining proportions

2
RESIZE =

A scale mode that causes the Game size to change - see Phaser.ScaleManager#scaleMode scaleMode.

3
USER_SCALE =

A scale mode that allows a custom scale factor - see Phaser.ScaleManager#scaleMode scaleMode.

4

Instance Method Summary collapse

Instance Method Details

#scale_mode=(mode) ⇒ Object



23
24
25
# File 'lib/opal/phaser/core/scale_manager.rb', line 23

def scale_mode=(mode)
  `#@native.scaleMode = #{mode}`
end