New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

phaser3-gamepad-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phaser3-gamepad-plugin

Phaser 3 Plugin Template

latest
npmnpm
Version
1.6.0
Version published
Maintainers
1
Created
Source

Phaser3 Plugin Template

A base plugin template for Phaser 3 to allow you to create your own plugins.

Run npm install and then npm run build to build the plugin.

Using Plugins in Phaser 3

You can load plugins externally, or include them in your bundle.

To load an external plugin:

function preload ()
{
    this.load.plugin('BasePlugin', 'path/to/BasePlugin.js');
}

Then to install it into a Scene:

    this.sys.install('BasePlugin');

If you load the plugins in a Preloader scene then you can add them to any other Scenes by specifying them in the plugins array:

var config = {
    scene: {
        create: create,
        plugins: [ 'BasePlugin' ],
        map: {
            'base': 'base'
        }
    }
};

More examples and instructions will follow, but for now see the Phaser 3 Examples repo for details.

FAQs

Package last updated on 30 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts