mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 04:53:38 +00:00
b6bef1ded9
Added Key Capture to Keyboard Manager. Added rotation and angle wrapping. Optmized getBounds.
28 lines
471 B
JavaScript
28 lines
471 B
JavaScript
var ScaleModes = require('../renderer/ScaleModes');
|
|
|
|
// ScaleMode Component
|
|
|
|
var ScaleMode = {
|
|
|
|
_scaleMode: ScaleModes.DEFAULT,
|
|
|
|
scaleMode: {
|
|
|
|
get: function ()
|
|
{
|
|
return this._scaleMode;
|
|
},
|
|
|
|
set: function (value)
|
|
{
|
|
if (value === ScaleModes.LINEAR || value === ScaleModes.NEAREST)
|
|
{
|
|
this._scaleMode = value;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = ScaleMode;
|