reduce volume, move buttons to the right

This commit is contained in:
cool-mist
2026-01-15 22:29:38 +05:30
parent 3a3c681899
commit 01b2832402
4 changed files with 33 additions and 17 deletions
+16 -1
View File
@@ -1,4 +1,7 @@
use macroquad::audio::Sound;
use macroquad::audio::{self, Sound};
use quad_snd::PlaySoundParams;
use super::constants::VOLUME;
pub struct Sounds {
pub click: Sound,
@@ -7,3 +10,15 @@ pub struct Sounds {
pub button: Sound,
pub mode: Sound,
}
impl Sounds {
pub fn play(sound: &Sound) {
audio::play_sound(
sound,
PlaySoundParams {
looped: false,
volume: VOLUME,
},
);
}
}