blob: 20a4b8eee76af4e78b365d9f3372d35e005e2974 (
plain)
1
2
3
4
5
6
7
8
9
|
game.createWordPush = () => {
const wordPush = game.Entity();
wordPush.addComponent(game.components.LoadPriority({priority: 3}));
wordPush.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
wordPush.addComponent(game.components.Pushable({pushable: true}));
wordPush.addComponent(game.components.Alive());
wordPush.sprite = game.sprites.wordPush;
return wordPush;
}
|