mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 18:28:57 +00:00
Impact Types
This commit is contained in:
parent
fbe2470f99
commit
490dd62f2b
9 changed files with 13 additions and 13 deletions
|
@ -4,6 +4,6 @@
|
|||
*
|
||||
* @property {string} [default] - The default physics system. It will be started for each scene. Phaser provides 'arcade', 'impact', and 'matter'.
|
||||
* @property {Phaser.Types.Physics.Arcade.ArcadeWorldConfig} [arcade] - Arcade Physics configuration.
|
||||
* @property {Phaser.Physics.Impact.Types.WorldConfig} [impact] - Impact Physics configuration.
|
||||
* @property {Phaser.Types.Physics.Impact.WorldConfig} [impact] - Impact Physics configuration.
|
||||
* @property {MatterWorldConfig} [matter] - Matter Physics configuration.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@ var TYPE = require('./TYPE');
|
|||
var UpdateMotion = require('./UpdateMotion');
|
||||
|
||||
/**
|
||||
* @callback Phaser.Physics.Impact.Types.BodyUpdateCallback
|
||||
* @callback Phaser.Types.Physics.Impact.BodyUpdateCallback
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Physics.Impact.Body} body - [description]
|
||||
|
@ -491,7 +491,7 @@ var Body = new Class({
|
|||
* @method Phaser.Physics.Impact.Body#toJSON
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return {Phaser.Physics.Impact.Types.JSONImpactBody} JSON representation of this body object.
|
||||
* @return {Phaser.Types.Physics.Impact.JSONImpactBody} JSON representation of this body object.
|
||||
*/
|
||||
toJSON: function ()
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ var TYPE = require('./TYPE');
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {Phaser.Scene} scene - The Scene to which this Impact World instance belongs.
|
||||
* @param {Phaser.Physics.Impact.Types.WorldConfig} config - [description]
|
||||
* @param {Phaser.Types.Physics.Impact.WorldConfig} config - [description]
|
||||
*/
|
||||
var World = new Class({
|
||||
|
||||
|
@ -141,7 +141,7 @@ var World = new Class({
|
|||
* [description]
|
||||
*
|
||||
* @name Phaser.Physics.Impact.World#defaults
|
||||
* @type {Phaser.Physics.Impact.Types.WorldDefaults}
|
||||
* @type {Phaser.Types.Physics.Impact.WorldDefaults}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.defaults = {
|
||||
|
@ -160,7 +160,7 @@ var World = new Class({
|
|||
* An object containing the 4 wall bodies that bound the physics world.
|
||||
*
|
||||
* @name Phaser.Physics.Impact.World#walls
|
||||
* @type {Phaser.Physics.Impact.Types.WorldWalls}
|
||||
* @type {Phaser.Types.Physics.Impact.WorldWalls}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.walls = { left: null, right: null, top: null, bottom: null };
|
||||
|
@ -280,7 +280,7 @@ var World = new Class({
|
|||
* @since 3.0.0
|
||||
*
|
||||
* @param {(Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} tilemapLayer - The tilemap layer to use.
|
||||
* @param {Phaser.Physics.Impact.Types.CollisionOptions} [options] - Options for controlling the mapping from tiles to slope IDs.
|
||||
* @param {Phaser.Types.Physics.Impact.CollisionOptions} [options] - Options for controlling the mapping from tiles to slope IDs.
|
||||
*
|
||||
* @return {Phaser.Physics.Impact.CollisionMap} The newly created CollisionMap.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @typedef {object} Phaser.Physics.Impact.Types.CollisionOptions
|
||||
* @typedef {object} Phaser.Types.Physics.Impact.CollisionOptions
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @property {string} [slopeTileProperty=null] - Slope IDs can be stored on tiles directly
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @typedef {object} Phaser.Physics.Impact.Types.JSONImpactBody
|
||||
* @typedef {object} Phaser.Types.Physics.Impact.JSONImpactBody
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @property {string} name - [description]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @typedef {object} Phaser.Physics.Impact.Types.WorldConfig
|
||||
* @typedef {object} Phaser.Types.Physics.Impact.WorldConfig
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @property {number} [gravity=0] - Sets {@link Phaser.Physics.Impact.World#gravity}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* An object containing the 4 wall bodies that bound the physics world.
|
||||
*
|
||||
* @typedef {object} Phaser.Physics.Impact.Types.WorldDefaults
|
||||
* @typedef {object} Phaser.Types.Physics.Impact.WorldDefaults
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @property {boolean} debugShowBody - Whether the Body's boundary is drawn to the debug display.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @typedef {object} Phaser.Physics.Impact.Types.WorldWalls
|
||||
* @typedef {object} Phaser.Types.Physics.Impact.WorldWalls
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @property {?Phaser.Physics.Impact.Body} left - The left-side wall of the world bounds.
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @namespace Phaser.Physics.Impact.Types
|
||||
* @namespace Phaser.Types.Physics.Impact
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue