feat: featch cards to storage
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:flame/game.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart' show HapticFeedback;
|
||||
|
||||
import '../../../../../core/network/card_images.dart';
|
||||
import '../../../../../core/service/app_sounds.dart';
|
||||
import '../../../../../core/settings/app_settings.dart';
|
||||
import '../../../../../core/theme/app_theme.dart';
|
||||
@@ -79,6 +80,7 @@ class HokmGame extends FlameGame {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
CardImages.preloadDeck(skin); // گرمکردنِ کشِ تصاویرِ کارت (پسزمینه، fire-and-forget)
|
||||
add(Felt(carpetUrl: carpetUrl));
|
||||
if (!AppSettings.I.lowGraphics.value) {
|
||||
add(Motes()); // ذراتِ طلاییِ معلق برای اتمسفر (در حالتِ کممصرف خاموش)
|
||||
|
||||
Reference in New Issue
Block a user