phaser/src/physics/arcade/const.js
2018-10-09 13:40:00 +01:00

123 lines
2.3 KiB
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Arcade Physics consts.
*
* @ignore
*/
var CONST = {
/**
* Dynamic Body.
*
* @name Phaser.Physics.Arcade.DYNAMIC_BODY
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#physicsType
* @see Phaser.Physics.Arcade.Group#physicsType
*/
DYNAMIC_BODY: 0,
/**
* Static Body.
*
* @name Phaser.Physics.Arcade.STATIC_BODY
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#physicsType
* @see Phaser.Physics.Arcade.StaticBody#physicsType
*/
STATIC_BODY: 1,
/**
* [description]
*
* @name Phaser.Physics.Arcade.GROUP
* @readonly
* @type {number}
* @since 3.0.0
*/
GROUP: 2,
/**
* [description]
*
* @name Phaser.Physics.Arcade.TILEMAPLAYER
* @readonly
* @type {number}
* @since 3.0.0
*/
TILEMAPLAYER: 3,
/**
* Facing no direction (initial value).
*
* @name Phaser.Physics.Arcade.FACING_NONE
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#facing
*/
FACING_NONE: 10,
/**
* Facing up.
*
* @name Phaser.Physics.Arcade.FACING_UP
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#facing
*/
FACING_UP: 11,
/**
* Facing down.
*
* @name Phaser.Physics.Arcade.FACING_DOWN
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#facing
*/
FACING_DOWN: 12,
/**
* Facing left.
*
* @name Phaser.Physics.Arcade.FACING_LEFT
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#facing
*/
FACING_LEFT: 13,
/**
* Facing right.
*
* @name Phaser.Physics.Arcade.FACING_RIGHT
* @readonly
* @type {number}
* @since 3.0.0
*
* @see Phaser.Physics.Arcade.Body#facing
*/
FACING_RIGHT: 14
};
module.exports = CONST;