1.0.1 • Published 4 years ago

rollup-plugin-kontra v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Rollup plugin kontra

Installation

npm install --save-dev rollup-plugin-kontra 

Usage

// rollup.config.js
import kontra from 'rollup-plugin-kontra'

export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [
    kontra({
      gameObject: {
        // enable only velocity and rotation functionality
        velocity: true,
        rotation: true
      },
      vector: {
        // enable vector length functionality
        length: true
      },
      // turn on debugging
      debug: true
    })
  ]
}

Options

See Kontra.js docs for a list of available options. All options default to false.