phaser/v3/src/physics/arcade/const.js

54 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-11-06 04:50:07 +00:00
module.exports = {
/**
* A constant used for the sortDirection value.
* Use this if you don't wish to perform any pre-collision sorting at all, or will manually sort your Groups.
* @constant
* @type {number}
*/
SORT_NONE: 0,
/**
* A constant used for the sortDirection value.
* Use this if your game world is wide but short and scrolls from the left to the right (i.e. Mario)
* @constant
* @type {number}
*/
LEFT_RIGHT: 1,
/**
* A constant used for the sortDirection value.
* Use this if your game world is wide but short and scrolls from the right to the left (i.e. Mario backwards)
* @constant
* @type {number}
*/
RIGHT_LEFT: 2,
/**
* A constant used for the sortDirection value.
* Use this if your game world is narrow but tall and scrolls from the top to the bottom (i.e. Dig Dug)
* @constant
* @type {number}
*/
TOP_BOTTOM: 3,
/**
* A constant used for the sortDirection value.
* Use this if your game world is narrow but tall and scrolls from the bottom to the top (i.e. Commando or a vertically scrolling shoot-em-up)
* @constant
* @type {number}
*/
BOTTOM_TOP: 4,
2017-11-09 04:01:30 +00:00
BODY: 5,
GROUP: 6,
TILEMAPLAYER: 7,
FACING_NONE: 8,
FACING_UP: 9,
FACING_DOWN: 10,
FACING_LEFT: 11,
FACING_RIGHT: 12
2017-11-06 04:50:07 +00:00
};