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