1.0.0 • Published 3 years ago

@hwll/hyper-unlimited-power v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

:tada: hyper-unlimited-power

Achy-breaky, shakey-shakey and confetti.\ Another configurable Hyper power-mode plugin.

Installation

Add the following to your ~/.hyper.js plugin array.

module.exports = {
  ...
  plugins: [
    'hyper-unlimited-power'
  ]
  ...
};

Config Options

Add any of the following to your ~/.hyper.js config object.

Enable Rainbow Particle Colors

Type: bool\ Default value: true

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      isRainbowEnabled: true
    }
    ...
  }
};

Enable Combo Mode

Type: bool\ Default value: true

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      isComboEnabled: true
    }
    ...
  }
};

Enable Permanent Screen Shake

Type: bool\ Default value: false

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      isEarthquakeEnabled: true
    }
    ...
  }
};

Static Particle Colors

Type: "false"|string|string[]\ Default value: false

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      isRainbowEnabled: false,
      staticParticleColors: ['red', 'yellow']
    }
    ...
  }
};

Maximum Number of Particles

Type: number\ Default value: 20

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      maxParticleCount: 50
    }
    ...
  }
};

Particle Velocity Range

Type: object\ Default value: { x: [-1, 1], y: [-2, -0.5] }

module.exports = {
  config: {
    ...
    hyperUnlimitedPower: {
      particleVelocityRange: {
        x: [-1, 1],
        y: [-2.5, -1.5]
      }
    }
    ...
  }
};

Secret Config Options

comboActivationThreshold

Type: number\ Default value: 15

comboTimeUntilDecay

Type: number\ Default value: 2000

particleAlphaFadeout

Type: number\ Default value: 0.92

particleAlphaMinThreshold

Type: number\ Default value: 0.1

particleGravity

Type: number\ Default value: 0.075

shakeIntensity

Type: number\ Default value: 1

License

MIT - see the LICENSE.md file for details

Acknowledgments & Credits