fix: some buggs
This commit is contained in:
@@ -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); // کلیکِ کوتاه
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user