summaryrefslogtreecommitdiff
path: root/src/entities/wordSink.js
blob: 298778dfcb64afadd2493dbb3ade534d03c3d5e7 (plain)
1
2
3
4
5
6
7
8
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.addComponent(game.components.Pushable({pushable: true}));
  wordSink.sprite = game.sprites.wordSink;
  return wordSink;
}