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