Make flag and wall sinkable&burnable
This commit is contained in:
parent
20b7944602
commit
3b6282c152
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user