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
|
@ -4,7 +4,8 @@
|
|||
"monster_16": "assets/monster-16.ogg",
|
||||
"monster_1": "assets/monster-1.ogg",
|
||||
"walk": "assets/blank.ogg",
|
||||
"blank": "assets/blank.ogg"
|
||||
"blank": "assets/blank.ogg",
|
||||
"pickup": "assets/pickup.ogg"
|
||||
},
|
||||
"sprites": {
|
||||
"armored_knight": "assets/armored_knight_1-256.png",
|
||||
|
@ -37,7 +38,7 @@
|
|||
"player": {
|
||||
},
|
||||
"worldgen": {
|
||||
"enemy_probability": 90,
|
||||
"enemy_probability": 30,
|
||||
"empty_room_probability": 10,
|
||||
"device_probability": 20
|
||||
}
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
"foreground": [24, 120, 189],
|
||||
"background": [24, 120, 189]
|
||||
},
|
||||
{"_type": "Sprite", "name": "cinqueda"}
|
||||
{"_type": "Sprite", "name": "cinqueda"},
|
||||
{"_type": "Sound", "attack": "pickup", "death": "blank"}
|
||||
]
|
||||
},
|
||||
"BARREL_SMALL": {
|
||||
|
|
|
@ -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