Skip to content

Commit e8c899a

Browse files
committed
deprecated Matter.RenderPixi
1 parent a6b97cd commit e8c899a

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

178177
For more information see my post on [Game physics for beginners](http://brm.io/game-physics-for-beginners/).
179178

src/core/Runner.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
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
/*

src/render/Render.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
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
*/

src/render/RenderPixi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

0 commit comments

Comments
 (0)