mirror of
https://github.com/photonstorm/phaser
synced 2024-12-20 10:03:50 +00:00
54 lines
1.4 KiB
JavaScript
54 lines
1.4 KiB
JavaScript
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,
|
|
|
|
DYNAMIC_BODY: 5,
|
|
STATIC_BODY: 6,
|
|
GROUP: 7,
|
|
TILEMAPLAYER: 8,
|
|
|
|
FACING_NONE: 10,
|
|
FACING_UP: 11,
|
|
FACING_DOWN: 12,
|
|
FACING_LEFT: 13,
|
|
FACING_RIGHT: 14
|
|
|
|
};
|