blob: 3f6b9f6d9c2e9d1a71f575822e3872ebfb734c69 (
plain)
1
2
3
4
5
6
7
8
|
game.createFloor = () => {
const floor = game.Entity();
floor.addComponent(game.components.LoadPriority({priority: 5}));
floor.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
floor.addComponent(game.components.Alive());
floor.addComponent(game.components.Sprite({spriteName: "floor"}))
return floor;
}
|