Make flag and wall sinkable&burnable

This commit is contained in:
Logan Hunt 2022-04-19 17:35:31 -06:00
parent 20b7944602
commit 3b6282c152
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 6 additions and 0 deletions

View File

@ -5,5 +5,8 @@ game.createFlag = () => {
flag.addComponent(game.components.Alive());
flag.addComponent(game.components.Sprite({spriteName: "flag"}))
flag.addComponent(game.components.Name({selector: "flag"}));
flag.addComponent(game.components.Burnable());
flag.addComponent(game.components.Sinkable());
return flag;
}

View File

@ -6,5 +6,8 @@ game.createWall = () => {
wall.addComponent(game.components.Name({selector: "wall"}));
wall.addComponent(game.components.Alive());
wall.addComponent(game.components.Sprite({spriteName: "wall"}));
wall.addComponent(game.components.Burnable());
wall.addComponent(game.components.Sinkable());
return wall;
};