Constructors
Properties
container
container: Scene
emitter
emitter: Emitter<any>
Methods
addExisting
- addExisting(): void
Returns void
emit
- emit(type, event?): void
Parameters
- type: string
- event: any = {}
Returns void
off
- off(type, handler): void
Returns void
on
- on(type, handler): void
Returns void
update
- update(time): void
Returns void
By extending this class, you can make your components keep their own state and animation.
Demo: https://kokomi-js.vercel.app/examples/#component