blob: 09478f684e978bc82c89874625f0ce88a9b7c3cc (
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.addComponent(game.components.Sprite({spriteName: "wordPush"}))
return wordPush;
}
|