playJump method
Plays the “jump” SFX (auto‐preloads first).
Implementation
Future<void> playJump() async {
await _ensurePreloaded();
final path = _cachedFiles['jump.wav']!;
await _fxPlayer.play(DeviceFileSource(path), volume: 1.0);
}
Plays the “jump” SFX (auto‐preloads first).
Future<void> playJump() async {
await _ensurePreloaded();
final path = _cachedFiles['jump.wav']!;
await _fxPlayer.play(DeviceFileSource(path), volume: 1.0);
}