1.1.0 • Published 2 months ago

kaboom-ext v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Kaboom Ext

KaboomJS Extensions

install

$ npm i --save kaboom-ext

Usage

import { moveable } from 'kaboom-ext'

// Add moveable component to your game object
k.add([
  moveable(),
  ...
])

Components list

The module exports some components that can be used to manage your game objects behaviour

moveable

This component allow your game object to be moved using the keyboard.

pointTowards

This component constrains your game object to always point in direction of the closer game object with the specified tag.

pointToMouse

This component constrains your game object to always point in direction of the mouse Todo

Plugins list

Todo

1.1.0

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago