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