blob: bd4c26796b5c5082735a49d056627846df98390f (
plain)
1
2
3
4
5
6
7
8
|
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.sprite = game.sprites.wordPush;
return wordPush;
}
|