Created a simple pickup sound that sounds like you put something in your bag.
This commit is contained in:
parent
806f8e4e1a
commit
daae239831
3 changed files with 9 additions and 3 deletions
|
@ -235,6 +235,10 @@ void System::collision(GameLevel &level) {
|
|||
world.remove<Curative>(entity);
|
||||
}
|
||||
|
||||
if(auto snd = world.get_if<Sound>(entity)) {
|
||||
sound::play(snd->attack);
|
||||
}
|
||||
|
||||
collider.remove(item_pos.location);
|
||||
world.remove<Tile>(entity);
|
||||
world.remove<InventoryItem>(entity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue