summaryrefslogtreecommitdiff
path: root/src/entities/wordSink.js
blob: 604d6305e963070f50fe4f06c487ab357766a086 (plain)
1
2
3
4
5
6
7
game.createWordSink = () => {
  const wordSink = game.Entity();
  wordSink.addComponent(game.components.LoadPriority({priority: 3}));
  wordSink.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordSink.sprite = game.sprites.wordSink;
  return wordSink;
}