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}
|
|
|
|
*/
|
2017-11-08 17:18:41 +00:00
|
|
|
BOTTOM_TOP: 4,
|
|
|
|
|
|
|
|
FACING_NONE: 5,
|
|
|
|
FACING_UP: 6,
|
|
|
|
FACING_DOWN: 7,
|
|
|
|
FACING_LEFT: 8,
|
|
|
|
FACING_RIGHT: 9
|
2017-11-06 04:50:07 +00:00
|
|
|
|
|
|
|
};
|