npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

phaser3_gui_inspector

v1.2.1

Published

This is a inspector for only phaser3 framework

Downloads

104

Readme

Phaser3_GUI_Inspector (PGInspector.js)

GitHub issues GitHub license GitHub All Releases jsDelivr npm

WARNING)
    This is the only for phaser3 framework

DESCRIPTION)
    I just inspired by babylon.js inspector
    This is a just custom dat.GUI, which works as Phaser3 inspector of each display list stuffs
    Also you can use this as debug displayed game objects

SCREENSHOT)

EXAMPLE)
    NODE_JS) - it has a issue so not recommended right now

npm install phaser3_gui_inspector --save-dev
npm i phaser3_gui_inspector --save-dev

// set in javascript file
import PhaserGUIAction from 'phaser3_gui_inspector';

    IN_HTML_URL) - prefer this method to test

// latest version
<script src="https://cdn.jsdelivr.net/gh/SilverTree7622/Phaser3_GUI_Inspector@latest/dist/PGInspector.js"></script>
// previous version
<script src="https://cdn.jsdelivr.net/gh/SilverTree7622/[email protected]/dist/PGInspector.js"></script>

    IN_JS)

function create() {
	/*
	* your any codes
	*/
	
	// should call this function at the end of Phaser.Scene create function
	// below method is gonna apply with default detailed setting
	PhaserGUIAction(this);
	
	// or
	
	// add some custom config object
	// first index is Phaser.Scene, second is config object
	PhaserGUIAction(
		this,
		{
			alpha: 0.6, // 0.0 ~ 1.0 (any value, you can change it in GUI)
			right: 100, // any value
			top: 50 // any value
			side: true // boolean (default is true)
		}
	);
}

        or

// your custom Phaser.Scene class
class MainScene extends Phaser.Scene {
	preload() {
		/*
		* your any codes
		*/
	}
	create() {
		/*
		* your any codes
		*/
		
		PhaserGUIAction(this); // also config object one works
	}
}

    IN_DEVTOOLS)
        It has some info in console way

USAGE)
    mouse command :
        (SHIFT + F) or (SHIFT + LEFT CLICK) is the most important & basic command for controlling Game Objects
        This makes Game Object 'Focus' which twinkles with RED BOUND
        The others is on the command list like below

    You can find command list in the Side GUI (init option 'side' should be true)

WARNING)
        - You can find specific Game Object via opening DISPLAY_LIST
        but i recommend to use command because performance optimization is based on the command actions

VERSION)
    PREVIOUS_UPDATE) https://github.com/SilverTree7622/Phaser3_GUI_Inspector/tree/master/zUpdate

    1.2.0)
        - Add Pointer Mode for ease (Move, Scale, Angle, None)
          Related Commands are (SHIFT + Q, W, E, R) for changing Pointer Mode & control with (SHIFT + LEFT CLICK)

        - Add Camera Move & Zoom
          Related Commands are (SHIFT + RIGHT CLICK) & (SHIFT + MOUSE SCROLL) & (SHIFT + S)

        - Add Following Focused Game Object
          Related Commands (SHIIFT + A) following or stop toggling when focused

        - Improve performance via partially hide

        - Add Focus on/off toggle in detail

        - Add Focus Game Object visible toggle
          Related Commands (SHIIFT + V) when focused

        - Add Focus Game Object's detail
          Related Commands (SHIIFT + D) when focused

        - Add Main Camera Blue Boundary only when move, zoom or following active

        - Add Default Zoom function which is just same as (SHIFT + S)

SHOWCASE)
    - mix with focused(SHIFT + F) + following(SHIFT + A) + Pointer Move Mode(SHIFT + Q)

    - test same thing in mini game