All Projects → samme → phaser-plugin-scene-graph

samme / phaser-plugin-scene-graph

Licence: other
Prints the display tree. Phaser 2/CE

Programming Languages

coffeescript
4710 projects
HTML
75241 projects

Projects that are alternatives of or similar to phaser-plugin-scene-graph

phaser-nineslice
NineSlice plugin for Phaser!
Stars: ✭ 52 (+62.5%)
Mutual labels:  phaser, phaser-plugin
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (+87.5%)
Mutual labels:  phaser, phaser-plugin
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (-12.5%)
Mutual labels:  phaser, phaser-plugin
craft
Phaser Library with utility chainable functions
Stars: ✭ 27 (-15.62%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-debug-arcade-physics
Draws properties of Arcade Physics bodies. Phaser 2/CE
Stars: ✭ 18 (-43.75%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (+9.38%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-advanced-timing
Shows FPS, frame intervals, and performance info. Phaser 2/CE
Stars: ✭ 25 (-21.87%)
Mutual labels:  phaser, phaser-plugin
phaser-super-storage
A cross platform storage plugin for Phaser
Stars: ✭ 49 (+53.13%)
Mutual labels:  phaser, phaser-plugin
phaser-responsive
Adds a set of responsive objects to Phaser that can be pinned to
Stars: ✭ 25 (-21.87%)
Mutual labels:  phaser, phaser-plugin
Phaser Examples
Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.
Stars: ✭ 1,680 (+5150%)
Mutual labels:  phaser
Phaser State Transition
State transition plugin for Phaser.js
Stars: ✭ 169 (+428.13%)
Mutual labels:  phaser
Reldens
Reldens - You can make it - Open Source MMORPG Platform
Stars: ✭ 130 (+306.25%)
Mutual labels:  phaser
Creature webgl
2D Skeletal Animation WebGL Runtimes for Creature ( PixiJS, PhaserJS, ThreeJS, BabylonJS, Cocos Creator )
Stars: ✭ 140 (+337.5%)
Mutual labels:  phaser
Expo Phaser
Build awesome 2D games with Phaser.js and Expo
Stars: ✭ 182 (+468.75%)
Mutual labels:  phaser
Phaser3 Particle Editor
A flexible editor for building phaser particles.
Stars: ✭ 131 (+309.38%)
Mutual labels:  phaser
Navmesh
A plugin for path-finding in JS using navmeshes, with wrappers for Phaser 3 and Phaser 2
Stars: ✭ 186 (+481.25%)
Mutual labels:  phaser
Machine Learning Flappy Bird
Machine Learning for Flappy Bird using Neural Network and Genetic Algorithm
Stars: ✭ 1,683 (+5159.38%)
Mutual labels:  phaser
Phaser Arcade Slopes
📐 A Phaser CE plugin that brings sloped tile collision handling to the Arcade Physics engine
Stars: ✭ 124 (+287.5%)
Mutual labels:  phaser
Phaser3 Typescript Project Template
A quick-start project template that uses Phaser 3, TypeScript and Rollup for bundling
Stars: ✭ 201 (+528.13%)
Mutual labels:  phaser
Phaser Project Template
🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
Stars: ✭ 186 (+481.25%)
Mutual labels:  phaser

Prints the display tree. Demo

Install

If not using npm or bower, add SceneGraph.js after phaser.js.

Use 👾

game.plugins.add(Phaser.Plugin.SceneGraph);

Debug Canvas

Print on the debug canvas

game.debug.renderGraph(obj, x, y, font, lineHeight);

Console

Print to the browser console

game.debug.graph() // everything; or

game.debug.graph(obj) // 1 object & descendants

game.debug.graph(obj, { // options:
    collapse:        true,
    filter:          null, // function (obj) -> true | false
    map:             null, // function (obj) -> "description"
    skipDead:        false,
    skipNonexisting: false
});

Configure (optional)

game.plugins.add(Phaser.Plugin.SceneGraph, {
  css: {
    dead:          "text-decoration: line-through",
    nonexisting:   "color: gray",
    nonrenderable: "background: rgba(127, 127, 127, 0.125)",
    invisible:     "background: rgba(0, 0, 0, 0.25)"
  },
  quiet: false
});

Tips

Name your groups and emitters:

group.name = "invaders"

emitter.name = "stars"

For a quick look at a game in progress, run in the console:

(function(game) {
  game.load
    .script(
      "SceneGraph",
      "https://cdn.jsdelivr.net/npm/[email protected]/dist/SceneGraph.js",
      function() {
        game.plugins.add(Phaser.Plugin.SceneGraph).graph();
      }
    )
    .start();
})(window.game || Phaser.GAMES[0]);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].