phaser/src/physics/arcade/const.js

124 lines
2.3 KiB
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
2018-03-30 13:24:18 +00:00
/**
* Arcade Physics consts.
2018-06-13 16:41:50 +00:00
*
2018-03-30 13:38:58 +00:00
* @ignore
2018-03-30 13:24:18 +00:00
*/
2018-03-30 13:38:58 +00:00
var CONST = {
2017-11-06 04:50:07 +00:00
/**
2018-06-13 16:41:50 +00:00
* Dynamic Body.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.DYNAMIC_BODY
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#physicsType
* @see Phaser.Physics.Arcade.Group#physicsType
2018-02-09 03:44:23 +00:00
*/
DYNAMIC_BODY: 0,
2018-02-09 03:44:23 +00:00
/**
2018-06-13 16:41:50 +00:00
* Static Body.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.STATIC_BODY
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#physicsType
* @see Phaser.Physics.Arcade.StaticBody#physicsType
2018-02-09 03:44:23 +00:00
*/
STATIC_BODY: 1,
/**
* [description]
2018-06-13 16:41:50 +00:00
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.GROUP
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
*/
GROUP: 2,
/**
* [description]
2018-06-13 16:41:50 +00:00
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.TILEMAPLAYER
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
*/
TILEMAPLAYER: 3,
/**
2018-06-13 16:41:50 +00:00
* Facing no direction (initial value).
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.FACING_NONE
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#facing
2018-02-09 03:44:23 +00:00
*/
FACING_NONE: 10,
2018-02-09 03:44:23 +00:00
/**
2018-06-13 16:41:50 +00:00
* Facing up.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.FACING_UP
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#facing
2018-02-09 03:44:23 +00:00
*/
FACING_UP: 11,
2018-02-09 03:44:23 +00:00
/**
2018-06-13 16:41:50 +00:00
* Facing down.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.FACING_DOWN
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#facing
2018-02-09 03:44:23 +00:00
*/
FACING_DOWN: 12,
2018-02-09 03:44:23 +00:00
/**
2018-06-13 16:41:50 +00:00
* Facing left.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.FACING_LEFT
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#facing
2018-02-09 03:44:23 +00:00
*/
FACING_LEFT: 13,
2018-02-09 03:44:23 +00:00
/**
2018-06-13 16:41:50 +00:00
* Facing right.
*
2018-02-09 03:44:23 +00:00
* @name Phaser.Physics.Arcade.FACING_RIGHT
2018-03-30 13:24:18 +00:00
* @readOnly
2018-02-09 03:44:23 +00:00
* @type {number}
* @since 3.0.0
2018-06-13 16:41:50 +00:00
*
* @see Phaser.Physics.Arcade.Body#facing
2018-02-09 03:44:23 +00:00
*/
FACING_RIGHT: 14
2017-11-06 04:50:07 +00:00
};
2018-03-30 13:38:58 +00:00
module.exports = CONST;