mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
A custom module entry point that removes un-needed components.
This commit is contained in:
parent
dff633cc62
commit
1442a2605f
1 changed files with 42 additions and 0 deletions
42
v3/src/physics/matter-js/CustomMain.js
Normal file
42
v3/src/physics/matter-js/CustomMain.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
var Matter = module.exports = require('./lib/core/Matter');
|
||||
|
||||
Matter.Body = require('./lib/body/Body');
|
||||
Matter.Composite = require('./lib/body/Composite');
|
||||
Matter.World = require('./lib/body/World');
|
||||
|
||||
Matter.Contact = require('./lib/collision/Contact');
|
||||
Matter.Detector = require('./lib/collision/Detector');
|
||||
Matter.Grid = require('./lib/collision/Grid');
|
||||
Matter.Pairs = require('./lib/collision/Pairs');
|
||||
Matter.Pair = require('./lib/collision/Pair');
|
||||
Matter.Query = require('./lib/collision/Query');
|
||||
Matter.Resolver = require('./lib/collision/Resolver');
|
||||
Matter.SAT = require('./lib/collision/SAT');
|
||||
|
||||
Matter.Constraint = require('./lib/constraint/Constraint');
|
||||
Matter.MouseConstraint = require('./lib/constraint/MouseConstraint');
|
||||
|
||||
Matter.Common = require('./lib/core/Common');
|
||||
Matter.Engine = require('./lib/core/Engine');
|
||||
Matter.Events = require('./lib/core/Events');
|
||||
Matter.Mouse = require('./lib/core/Mouse');
|
||||
Matter.Sleeping = require('./lib/core/Sleeping');
|
||||
Matter.Plugin = require('./lib/core/Plugin');
|
||||
|
||||
Matter.Bodies = require('./lib/factory/Bodies');
|
||||
Matter.Composites = require('./lib/factory/Composites');
|
||||
|
||||
Matter.Axes = require('./lib/geometry/Axes');
|
||||
Matter.Bounds = require('./lib/geometry/Bounds');
|
||||
Matter.Svg = require('./lib/geometry/Svg');
|
||||
Matter.Vector = require('./lib/geometry/Vector');
|
||||
Matter.Vertices = require('./lib/geometry/Vertices');
|
||||
|
||||
// aliases
|
||||
|
||||
Matter.World.add = Matter.Composite.add;
|
||||
Matter.World.remove = Matter.Composite.remove;
|
||||
Matter.World.addComposite = Matter.Composite.addComposite;
|
||||
Matter.World.addBody = Matter.Composite.addBody;
|
||||
Matter.World.addConstraint = Matter.Composite.addConstraint;
|
||||
Matter.World.clear = Matter.Composite.clear;
|
Loading…
Reference in a new issue