Apply suggestions from code review

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/19/head
Erick 3 years ago committed by GitHub
parent a2093811fa
commit 8a5fbda51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,8 @@
import 'package:pinball/game/game.dart'; import 'package:pinball/game/game.dart';
/// Add methods to help loading and caching game assets /// Add methods to help loading and caching game assets.
extension PinballGameAssetsX on PinballGame { extension PinballGameAssetsX on PinballGame {
/// Pre load the initial assets of the game /// Pre load the initial assets of the game.
Future<void> preLoadAssets() async { Future<void> preLoadAssets() async {
await Future.wait([ await Future.wait([
images.load(Ball.spritePath), images.load(Ball.spritePath),

Loading…
Cancel
Save