1.0.8 • Published 3 years ago

pixi-emote-selector v1.0.8

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

💬😜 pixi-emote-selector

Emote Selector for pixi.js

Usage

import { EmoteSelector } from "pixi-emote-selector";

const emoteSelector = new EmoteSelector({
  options: [
    PIXI.Sprite.from('emote_exclamation'),
    PIXI.Sprite.from('emote_laugh'),
    PIXI.Sprite.from('emote_sleeps'),
    PIXI.Sprite.from('emote_heart'),
  ],
  onItemSelected: (indexSelected) => {
    console.log("Item selected:", indexSelected);
    statusText.text = `${itemSelected} selected.`;
  },
});

app.stage.addChild(emoteSelector);

The assets used on this demo are taken from Kenney's Emotes Pack.

License

Endel Dreyer © MIT

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago