24 lines
399 B
JavaScript
24 lines
399 B
JavaScript
/**
|
|
* Describes how the map will operate in 2D.
|
|
*
|
|
* @enum {number}
|
|
*/
|
|
const MapMode2D = {
|
|
/**
|
|
* The 2D map can be rotated about the z axis.
|
|
*
|
|
* @type {number}
|
|
* @constant
|
|
*/
|
|
ROTATE: 0,
|
|
|
|
/**
|
|
* The 2D map can be scrolled infinitely in the horizontal direction.
|
|
*
|
|
* @type {number}
|
|
* @constant
|
|
*/
|
|
INFINITE_SCROLL: 1,
|
|
};
|
|
export default Object.freeze(MapMode2D);
|