2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2019-01-15 16:20:22 +00:00
|
|
|
* @copyright 2019 Photon Storm Ltd.
|
2018-02-12 16:01:20 +00:00
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-03-16 13:29:30 +00:00
|
|
|
var CONST = require('./const');
|
|
|
|
var Extend = require('../../utils/object/Extend');
|
|
|
|
|
2018-03-19 20:42:07 +00:00
|
|
|
/**
|
|
|
|
* @callback ArcadePhysicsCallback
|
|
|
|
*
|
2018-10-19 16:45:05 +00:00
|
|
|
* @param {Phaser.GameObjects.GameObject} object1 - The first Body to separate.
|
|
|
|
* @param {Phaser.GameObjects.GameObject} object2 - The second Body to separate.
|
2018-03-19 20:42:07 +00:00
|
|
|
*/
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.Physics.Arcade
|
|
|
|
*/
|
2017-11-08 17:18:41 +00:00
|
|
|
|
2018-03-16 13:29:30 +00:00
|
|
|
var Arcade = {
|
2017-11-08 17:18:41 +00:00
|
|
|
|
2018-01-17 03:41:58 +00:00
|
|
|
ArcadePhysics: require('./ArcadePhysics'),
|
2019-03-26 16:51:01 +00:00
|
|
|
BaseBody: require('./BaseBody'),
|
2017-11-08 17:18:41 +00:00
|
|
|
Body: require('./Body'),
|
2018-01-17 03:41:58 +00:00
|
|
|
Collider: require('./Collider'),
|
2019-03-24 22:51:34 +00:00
|
|
|
Components: require('./components'),
|
2017-11-13 01:04:45 +00:00
|
|
|
Factory: require('./Factory'),
|
|
|
|
Group: require('./PhysicsGroup'),
|
|
|
|
Image: require('./ArcadeImage'),
|
2019-03-21 17:24:14 +00:00
|
|
|
IntersectsRect: require('./IntersectsRect'),
|
2017-11-13 01:04:45 +00:00
|
|
|
Sprite: require('./ArcadeSprite'),
|
2018-01-17 03:41:58 +00:00
|
|
|
StaticBody: require('./StaticBody'),
|
|
|
|
StaticGroup: require('./StaticPhysicsGroup'),
|
2017-11-13 01:04:45 +00:00
|
|
|
World: require('./World')
|
2018-03-19 20:42:07 +00:00
|
|
|
|
2017-11-08 17:18:41 +00:00
|
|
|
};
|
2018-03-16 13:29:30 +00:00
|
|
|
|
|
|
|
// Merge in the consts
|
|
|
|
Arcade = Extend(false, Arcade, CONST);
|
|
|
|
|
|
|
|
module.exports = Arcade;
|