mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Updated jsdocs
This commit is contained in:
parent
ea52b2e12c
commit
fb42cbee42
3 changed files with 652 additions and 134 deletions
|
@ -46,7 +46,7 @@ var Tile = new Class({
|
||||||
* The LayerData in the Tilemap data that this tile belongs to.
|
* The LayerData in the Tilemap data that this tile belongs to.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#layer
|
* @name Phaser.Tilemaps.ImageCollection#layer
|
||||||
* @property {Phaser.Tilemaps.LayerData}
|
* @type {Phaser.Tilemaps.LayerData}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.layer = layer;
|
this.layer = layer;
|
||||||
|
@ -56,7 +56,7 @@ var Tile = new Class({
|
||||||
* represents a blank tile.
|
* represents a blank tile.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#index
|
* @name Phaser.Tilemaps.ImageCollection#index
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.index = index;
|
this.index = index;
|
||||||
|
@ -65,7 +65,7 @@ var Tile = new Class({
|
||||||
* The x map coordinate of this tile in tile units.
|
* The x map coordinate of this tile in tile units.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#x
|
* @name Phaser.Tilemaps.ImageCollection#x
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.x = x;
|
this.x = x;
|
||||||
|
@ -74,7 +74,7 @@ var Tile = new Class({
|
||||||
* The y map coordinate of this tile in tile units.
|
* The y map coordinate of this tile in tile units.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#y
|
* @name Phaser.Tilemaps.ImageCollection#y
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.y = y;
|
this.y = y;
|
||||||
|
@ -83,7 +83,7 @@ var Tile = new Class({
|
||||||
* The width of the tile in pixels.
|
* The width of the tile in pixels.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#width
|
* @name Phaser.Tilemaps.ImageCollection#width
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.width = width;
|
this.width = width;
|
||||||
|
@ -92,7 +92,7 @@ var Tile = new Class({
|
||||||
* The height of the tile in pixels.
|
* The height of the tile in pixels.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#height
|
* @name Phaser.Tilemaps.ImageCollection#height
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.height = height;
|
this.height = height;
|
||||||
|
@ -102,7 +102,7 @@ var Tile = new Class({
|
||||||
* within one map, but they are still placed at intervals of the base tile size.
|
* within one map, but they are still placed at intervals of the base tile size.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#baseWidth
|
* @name Phaser.Tilemaps.ImageCollection#baseWidth
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.baseWidth = (baseWidth !== undefined) ? baseWidth : width;
|
this.baseWidth = (baseWidth !== undefined) ? baseWidth : width;
|
||||||
|
@ -112,7 +112,7 @@ var Tile = new Class({
|
||||||
* within one map, but they are still placed at intervals of the base tile size.
|
* within one map, but they are still placed at intervals of the base tile size.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#baseHeight
|
* @name Phaser.Tilemaps.ImageCollection#baseHeight
|
||||||
* @property {integer}
|
* @type {integer}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.baseHeight = (baseHeight !== undefined) ? baseHeight : height;
|
this.baseHeight = (baseHeight !== undefined) ? baseHeight : height;
|
||||||
|
@ -123,7 +123,7 @@ var Tile = new Class({
|
||||||
* scroll, layer scale or layer position.
|
* scroll, layer scale or layer position.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#pixelX
|
* @name Phaser.Tilemaps.ImageCollection#pixelX
|
||||||
* @property {number}
|
* @type {number}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.pixelX = 0;
|
this.pixelX = 0;
|
||||||
|
@ -134,7 +134,7 @@ var Tile = new Class({
|
||||||
* scroll, layer scale or layer position.
|
* scroll, layer scale or layer position.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#pixelY
|
* @name Phaser.Tilemaps.ImageCollection#pixelY
|
||||||
* @property {number}
|
* @type {number}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.pixelY = 0;
|
this.pixelY = 0;
|
||||||
|
@ -145,7 +145,7 @@ var Tile = new Class({
|
||||||
* Tile specific properties. These usually come from Tiled.
|
* Tile specific properties. These usually come from Tiled.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#properties
|
* @name Phaser.Tilemaps.ImageCollection#properties
|
||||||
* @property {object}
|
* @type {object}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.properties = {};
|
this.properties = {};
|
||||||
|
@ -154,7 +154,7 @@ var Tile = new Class({
|
||||||
* The rotation angle of this tile.
|
* The rotation angle of this tile.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#rotation
|
* @name Phaser.Tilemaps.ImageCollection#rotation
|
||||||
* @property {number}
|
* @type {number}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.rotation = 0;
|
this.rotation = 0;
|
||||||
|
@ -163,7 +163,7 @@ var Tile = new Class({
|
||||||
* Whether the tile should collide with any object on the left side.
|
* Whether the tile should collide with any object on the left side.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collideLeft
|
* @name Phaser.Tilemaps.ImageCollection#collideLeft
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collideLeft = false;
|
this.collideLeft = false;
|
||||||
|
@ -172,7 +172,7 @@ var Tile = new Class({
|
||||||
* Whether the tile should collide with any object on the right side.
|
* Whether the tile should collide with any object on the right side.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collideRight
|
* @name Phaser.Tilemaps.ImageCollection#collideRight
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collideRight = false;
|
this.collideRight = false;
|
||||||
|
@ -181,7 +181,7 @@ var Tile = new Class({
|
||||||
* Whether the tile should collide with any object on the top side.
|
* Whether the tile should collide with any object on the top side.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collideUp
|
* @name Phaser.Tilemaps.ImageCollection#collideUp
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collideUp = false;
|
this.collideUp = false;
|
||||||
|
@ -190,7 +190,7 @@ var Tile = new Class({
|
||||||
* Whether the tile should collide with any object on the bottom side.
|
* Whether the tile should collide with any object on the bottom side.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collideDown
|
* @name Phaser.Tilemaps.ImageCollection#collideDown
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collideDown = false;
|
this.collideDown = false;
|
||||||
|
@ -199,7 +199,7 @@ var Tile = new Class({
|
||||||
* Whether the tile's left edge is interesting for collisions.
|
* Whether the tile's left edge is interesting for collisions.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#faceLeft
|
* @name Phaser.Tilemaps.ImageCollection#faceLeft
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.faceLeft = false;
|
this.faceLeft = false;
|
||||||
|
@ -208,7 +208,7 @@ var Tile = new Class({
|
||||||
* Whether the tile's right edge is interesting for collisions.
|
* Whether the tile's right edge is interesting for collisions.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#faceRight
|
* @name Phaser.Tilemaps.ImageCollection#faceRight
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.faceRight = false;
|
this.faceRight = false;
|
||||||
|
@ -217,7 +217,7 @@ var Tile = new Class({
|
||||||
* Whether the tile's top edge is interesting for collisions.
|
* Whether the tile's top edge is interesting for collisions.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#faceTop
|
* @name Phaser.Tilemaps.ImageCollection#faceTop
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.faceTop = false;
|
this.faceTop = false;
|
||||||
|
@ -226,7 +226,7 @@ var Tile = new Class({
|
||||||
* Whether the tile's bottom edge is interesting for collisions.
|
* Whether the tile's bottom edge is interesting for collisions.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#faceBottom
|
* @name Phaser.Tilemaps.ImageCollection#faceBottom
|
||||||
* @property {boolean}
|
* @type {boolean}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.faceBottom = false;
|
this.faceBottom = false;
|
||||||
|
@ -235,7 +235,7 @@ var Tile = new Class({
|
||||||
* Tile collision callback.
|
* Tile collision callback.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collisionCallback
|
* @name Phaser.Tilemaps.ImageCollection#collisionCallback
|
||||||
* @property {function}
|
* @type {function}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collisionCallback = null;
|
this.collisionCallback = null;
|
||||||
|
@ -244,7 +244,7 @@ var Tile = new Class({
|
||||||
* The context in which the collision callback will be called.
|
* The context in which the collision callback will be called.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#collisionCallbackContext
|
* @name Phaser.Tilemaps.ImageCollection#collisionCallbackContext
|
||||||
* @property {object}
|
* @type {object}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.collisionCallbackContext = this;
|
this.collisionCallbackContext = this;
|
||||||
|
@ -254,7 +254,7 @@ var Tile = new Class({
|
||||||
* the 4 corner tint component on other GameObjects.
|
* the 4 corner tint component on other GameObjects.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#tint
|
* @name Phaser.Tilemaps.ImageCollection#tint
|
||||||
* @property {number}
|
* @type {number}
|
||||||
* @default
|
* @default
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
|
@ -264,7 +264,7 @@ var Tile = new Class({
|
||||||
* An empty object where physics-engine specific information (e.g. bodies) may be stored.
|
* An empty object where physics-engine specific information (e.g. bodies) may be stored.
|
||||||
*
|
*
|
||||||
* @name Phaser.Tilemaps.ImageCollection#physics
|
* @name Phaser.Tilemaps.ImageCollection#physics
|
||||||
* @property {object}
|
* @type {object}
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
this.physics = {};
|
this.physics = {};
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,12 +1,11 @@
|
||||||
|
|
||||||
var GetTilesWithin = require('./GetTilesWithin');
|
|
||||||
var WorldToTileX = require('./WorldToTileX');
|
|
||||||
var WorldToTileY = require('./WorldToTileY');
|
|
||||||
var TileToWorldX = require('./TileToWorldX');
|
|
||||||
var TileToWorldY = require('./TileToWorldY');
|
|
||||||
var Geom = require('../../geom/');
|
var Geom = require('../../geom/');
|
||||||
|
var GetTilesWithin = require('./GetTilesWithin');
|
||||||
var Intersects = require('../../geom/intersects/');
|
var Intersects = require('../../geom/intersects/');
|
||||||
var NOOP = require('../../utils/NOOP');
|
var NOOP = require('../../utils/NOOP');
|
||||||
|
var TileToWorldX = require('./TileToWorldX');
|
||||||
|
var TileToWorldY = require('./TileToWorldY');
|
||||||
|
var WorldToTileX = require('./WorldToTileX');
|
||||||
|
var WorldToTileY = require('./WorldToTileY');
|
||||||
|
|
||||||
var TriangleToRectangle = function (triangle, rect)
|
var TriangleToRectangle = function (triangle, rect)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue