JSPM

phaser3-swipe-plugin

1.0.6
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q38627F
    • License MIT

    Mobile swipe plugin for Phaser 3.

    Package Exports

    • phaser3-swipe-plugin

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phaser3-swipe-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm i --save phaser3-swipe-plugin
    
    # Or 
    
    yarn add phaser3-swipe-plugin

    Usage

    1. Import
    import SwipePlugin from 'phaser3-swipe-plugin'
    1. Add to config (GameConfig) plugins property.
      ...
      plugins: {
        global: [
          {
            key: 'RandomNamePlugin',
            plugin: SwipePlugin,
            start: true,
            data: {
              // you can give your value for min offset
              offset: 123
            }
          }
        ]
      }
      ...

    Tested on Phaser 3.15.1.