fix: trump trick
This commit is contained in:
@@ -16,6 +16,7 @@ class AppSounds {
|
||||
static const _button = 'button.mp3'; // فشردنِ دکمهها
|
||||
static const _selectHokm = 'select_hokm.mp3'; // انتخابِ حکم
|
||||
static const _heartBeat = 'heart_beat.mp3'; // ثانیههای پایانیِ نوبت
|
||||
static const _turn = 'turn.mp3'; // شروعِ نوبتِ خودِ کاربر
|
||||
|
||||
static const _all = [
|
||||
_shuffle,
|
||||
@@ -26,6 +27,7 @@ class AppSounds {
|
||||
_button,
|
||||
_selectHokm,
|
||||
_heartBeat,
|
||||
_turn,
|
||||
];
|
||||
|
||||
static final Map<String, AudioPool> _pools = {};
|
||||
@@ -59,6 +61,9 @@ class AppSounds {
|
||||
static void cut() => _play(_cut, 0.9);
|
||||
static void win() => _play(_win, 0.9);
|
||||
static void selectHokm() => _play(_selectHokm, 0.9);
|
||||
static void turn() => _play(_turn, 0.9); // نوبتِ کاربر برای بازی
|
||||
// شمارشِ معکوسِ شروعِ بازی (۳…۲…۱) — کلیکِ کوتاه برای هر عدد.
|
||||
static void tick() => _play(_button, 0.7, cutoffMs: 200);
|
||||
|
||||
// کنترلِ ضربانِ قلب: همیشه حداکثر یک ضربان همزمان (بدون انباشت/تکرارِ سریع)
|
||||
// و قابلِ توقف وقتی نوبت تمام میشود.
|
||||
|
||||
Reference in New Issue
Block a user