Add hurt sounds, fix sound playing

This commit is contained in:
2024-02-10 15:12:33 +01:00
parent f08b38664c
commit 5c606f494a

View File

@@ -23,7 +23,7 @@ void damageEvent(ecs_entity_t entity, DamageEvent event) {
ecs_set_ptr(ECS, bloodEmitterEntity, ParticleEmitter, &bloodEmitter);
SoundState *sounds = ecs_singleton_get_mut(ECS, SoundState);
bool status = soundsPosPlay(sounds, center, getRandomSoundType(SOUND_HURT_1, SOUND_HURT_3));
soundsPosPlay(sounds, center, getRandomSoundType(SOUND_HURT_1, SOUND_HURT_3));
Vector2 pos = {
event.hitbox.x + event.hitbox.width * 0.5f + randFloatRange(-2, 2),