blob: b26dc5772f79b2ffe0c7c97dd91b19a9a09b8a48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
game.createWordWater = () => {
const wordWater = game.Entity();
wordWater.addComponent(game.components.Position({x: 0, y: 0}));
wordWater.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
wordWater.sprite = game.graphics.Sprite({
image: game.assets.wordWater,
spriteHeight: 24,
spriteWidth: 24,
numFrames: 3,
timePerFrame: 100,
});
return wordWater;
}
|