9 lines
347 B
JavaScript
9 lines
347 B
JavaScript
game.createWordWin = () => {
|
|
const wordWin = game.Entity();
|
|
wordWin.addComponent(game.components.LoadPriority({priority: 3}));
|
|
wordWin.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
|
|
wordWin.addComponent(game.components.Pushable({pushable: true}));
|
|
wordWin.sprite = game.sprites.wordWin;
|
|
return wordWin;
|
|
}
|