fix: some buggs

This commit is contained in:
2026-06-19 00:45:30 +03:30
parent f4d99043c4
commit a4cf2b5f39
7 changed files with 266 additions and 10 deletions
+11 -1
View File
@@ -14,8 +14,17 @@ class AppSounds {
static const _cut = 'cut.mp3'; // بریدن با حکم (شمشیر)
static const _win = 'win.mp3'; // برد بازی
static const _button = 'button.mp3'; // فشردنِ دکمه‌ها
static const _selectHokm = 'select_hokm.mp3'; // انتخابِ حکم
static const _all = [_shuffle, _placeCard, _takeCard, _cut, _win, _button];
static const _all = [
_shuffle,
_placeCard,
_takeCard,
_cut,
_win,
_button,
_selectHokm,
];
static final Map<String, AudioPool> _pools = {};
static bool muted = false;
@@ -47,5 +56,6 @@ class AppSounds {
static void takeCard() => _play(_takeCard, 0.7);
static void cut() => _play(_cut, 0.9);
static void win() => _play(_win, 0.9);
static void selectHokm() => _play(_selectHokm, 0.9);
static void button() => _play(_button, 0.5, cutoffMs: 130); // کلیکِ کوتاه
}