Add sound

This commit is contained in:
Miloslav Ciz 2025-01-29 16:27:47 +01:00
parent be11c582b1
commit 67e0814afb
8 changed files with 124 additions and 94 deletions

5
game.h
View file

@ -1,7 +1,8 @@
#ifndef _LCR_GAME_H
#define _LCR_GAME_H
/*
/** @file game.h
Licar: game module
This file implements the backend of a complete, actually playable game with
@ -1385,6 +1386,8 @@ LCR_replayOutputStr(_LCR_gameDataCharWrite);
LCR_audioPlaySound(LCR_SOUND_CRASH_BIG);
LCR_LOG2("crash (big)");
}
else if (events & LCR_RACING_EVENT_ACCELERATOR)
LCR_audioPlaySoundIfFree(LCR_SOUND_ACCELERATOR);
int engineIntensity = LCR_carSpeedKMH() * 2;