phaser/src/physics/arcade/index.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

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
*/
/**
* @namespace Phaser.Physics.Arcade
*/
2018-03-16 13:29:30 +00:00
var Arcade = {
ArcadePhysics: require('./ArcadePhysics'),
Body: require('./Body'),
Collider: require('./Collider'),
Components: require('./components'),
Events: require('./events'),
Factory: require('./Factory'),
Group: require('./PhysicsGroup'),
Image: require('./ArcadeImage'),
Sprite: require('./ArcadeSprite'),
StaticBody: require('./StaticBody'),
StaticGroup: require('./StaticPhysicsGroup'),
World: require('./World')
2018-03-19 20:42:07 +00:00
};
2018-03-16 13:29:30 +00:00
// Merge in the consts
Arcade = Extend(false, Arcade, CONST);
module.exports = Arcade;