blob: 69593aa08e6d6342f05b15d99e3a38e06c370e25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
game.createBigBlue = () => {
const bigBlue = game.Entity();
bigBlue.addComponent(game.components.LoadPriority({priority: 1}));
bigBlue.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
bigBlue.sprite = game.sprites.bigBlue;
// TODO: Remove this
bigBlue.addComponent(game.components.Controllable({controls: ['left', 'right', 'up', 'down']}));
return bigBlue;
}
|