• Stars
    star
    395
  • Rank 109,040 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Devtools for PixiJS

PixiJS Devtools

Browser extension to debug games and apps written with PixiJS.

Features

  • Show the scene graph
  • View and edit properties
  • Double-click in the outliner to console.log a node
  • Outline the active node in the viewport.
  • The active node is available in the developer console as $pixi
  • Right-click (or alt click) in the viewport to activate a node

Installation

Install PixiJS Devtools from:

Usage

PixiJS

In your code find where the PIXI.Application instance is created, it looks like this:

import { Application } from "pixi.js";

const app = new Application(...)

Expose that app to the PixiJS Devtools by adding the line:

globalThis.__PIXI_APP__ = app;

or depending on your TypeScript and ESLint configuration:

(globalThis as any).__PIXI_APP__ = app; // eslint-disable-line

Phaser

In your code find where the Phaser.Game instance is created, it looks like this:

import Phaser from "phaser";

const game = Phaser.Game(...)

Expose that game to the PixiJS Devtools by adding the line:

globalThis.__PHASER_GAME__ = game;

Custom setup?

If you don't use a PIXI.Application or Phaser.Game? you can specify the root-node manually with:

globalThis.__PIXI_STAGE__ = yourContainer;

And to enable highlighting and selecting the nodes in the viewport add:

globalThis.__PIXI_RENDERER__ = yourRenderer;

More Repositories

1

eslint-plugin-only-warn

Downgrade errors to warnings
JavaScript
157
star
2

angular-activerecord

A model layer for AngularJS inspired by Backbone.Model
JavaScript
137
star
3

svelte-preprocess-react

Seamlessly use React components inside a Svelte app
TypeScript
128
star
4

angular-keyboard

Keyboard behavior for AngularJS Webapps
JavaScript
37
star
5

tvkit

Proxy to run a modern dev server in old browsers
JavaScript
25
star
6

page-transitions-in-svelte

Using page transitions Today (with Svelte)
Svelte
23
star
7

r8168dl

Was used for the now deprecated r8168dl.appspot.com, for newer drivers go to: http://github.com/mtorromeo/r8168
Hack
22
star
8

svelte-cannon

Declarative Svelte components for the cannon-es physics engine
Svelte
20
star
9

multiplayer-dice-game

TypeScript
16
star
10

framebuffer

low level access to the linux frame buffer from go
Go
13
star
11

swagger-explained

Interactive documentation of the swagger.json
TypeScript
10
star
12

svelte-ssr-go

Render svelte pages with embedded v8 in go
Go
6
star
13

svelte-project-template

An opinionated starter-template for SvelteKit projects
TypeScript
5
star
14

svelte-outin

<transition mode="out-in"> for Svelte
TypeScript
3
star
15

beurtbalkje

Connection queue proxy for restarting services
Go
2
star
16

blender-elements

Bringing the UI controls from Blender to the web
JavaScript
2
star
17

flowcart

Svelte
1
star
18

clock

Clock software in Golang for Raspberry Pi
Go
1
star
19

sledgehammer_cakephp

Use CakePHP in an Sledgehammer project
PHP
1
star
20

micropython-livereload

LiveReload for Microcontrollers
Python
1
star
21

sledgehammer_forms

Een SledgeHammer module om (web)formulieren mee te genereren
PHP
1
star
22

sledgehammer_beanstalk

Sledgehammer module for accessing the Beanstalk REST API
PHP
1
star
23

dust.dom.js

Add support for adding DOM hooks within a dust.helpers
JavaScript
1
star
24

sledgehammer_geoip

SledgeHammer module voor het bepalen van het Land o.b.v. het IP adres.
PHP
1
star
25

sledgehammer_webcomponents

Collectie componenten voor het SledgeHammer Framework
PHP
1
star
26

t-shirt-idea

HTML
1
star