1.0.8 • Published 4 years ago

pixi-emote-selector v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago