File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ See how others are using matter.js physics
103103- Collision queries (raycasting, region tests)
104104- Time scaling (slow-mo, speed-up)
105105- Canvas renderer (supports vectors and textures)
106- - WebGL renderer (requires [ pixi.js] ( https://github.com/GoodBoyDigital/pixi.js/ ) )
107106- [ MatterTools] ( https://github.com/liabru/matter-tools ) for creating, testing and debugging worlds
108107- World state serialisation (requires [ resurrect.js] ( https://github.com/skeeto/resurrect-js ) )
109108- Cross-browser (Chrome, Firefox, Safari, IE8+)
@@ -173,7 +172,7 @@ The engine uses the following techniques:
173172- Constraints solved with the Gauss-Siedel method
174173- Semi-variable time step, synced with rendering
175174- A basic sleeping strategy
176- - HTML5 Canvas / WebGL renderer
175+ - HTML5 Canvas rendering
177176
178177For more information see my post on [ Game physics for beginners] ( http://brm.io/game-physics-for-beginners/ ) .
179178
Original file line number Diff line number Diff line change 11/**
22* The `Matter.Runner` module is an optional utility which provides a game loop,
3- * that handles updating and rendering a `Matter.Engine` for you within a browser.
4- * It is intended for demo and testing purposes, but may be adequate for simple games.
3+ * that handles continuously updating a `Matter.Engine` for you within a browser.
4+ * It is intended for development and debugging purposes, but may also be suitable for simple games.
55* If you are using your own game loop instead, then you do not need the `Matter.Runner` module.
66* Instead just call `Engine.update(engine, delta)` in your own loop.
7- * Note that the method `Engine.run` is an alias for `Runner.run`.
87*
98* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).
109*
@@ -267,6 +266,7 @@ var Common = require('./Common');
267266 * @param {number } event.timestamp The engine.timing.timestamp of the event
268267 * @param { } event.source The source object of the event
269268 * @param { } event.name The name of the event
269+ * @deprecated
270270 */
271271
272272 /**
@@ -277,6 +277,7 @@ var Common = require('./Common');
277277 * @param {number } event.timestamp The engine.timing.timestamp of the event
278278 * @param { } event.source The source object of the event
279279 * @param { } event.name The name of the event
280+ * @deprecated
280281 */
281282
282283 /*
Original file line number Diff line number Diff line change 11/**
2- * The `Matter.Render` module is the default `render.controller` used by a `Matter.Engine`.
3- * This renderer is HTML5 canvas based and supports a number of drawing options including sprites and viewports.
4- *
5- * It is possible develop a custom renderer module based on `Matter.Render` and pass an instance of it to `Engine.create` via `options.render`.
6- * A minimal custom renderer object must define at least three functions: `create`, `clear` and `world` (see `Matter.Render`).
7- *
8- * See also `Matter.RenderPixi` for an alternate WebGL, scene-graph based renderer.
2+ * The `Matter.Render` module is a simple HTML5 canvas based renderer for visualising instances of `Matter.Engine`.
3+ * It is intended for development and debugging purposes, but may also be suitable for simple games.
4+ * It includes a number of drawing options including wireframe, vector with support for sprites and viewports.
95*
106* @class Render
117*/
Original file line number Diff line number Diff line change 33* See also `Matter.Render` for a canvas based renderer.
44*
55* @class RenderPixi
6- * @deprecated the ` Matter.RenderPixi` module will soon be removed from the Matter.js core.
6+ * @deprecated the Matter.RenderPixi module will soon be removed from the Matter.js core.
77* It will likely be moved to its own repository (but maintenance will be limited).
88*/
99
You can’t perform that action at this time.
0 commit comments