Fixing lint

This commit is contained in:
Erick Zanardo
2020-12-12 15:17:40 -03:00
parent 817f7168b1
commit 2e6da04930
3 changed files with 5 additions and 10 deletions

View File

@ -58,8 +58,11 @@ class MyGame extends BaseGame {
Vector2 cellSize;
Vector2 halfCellSize;
MyGame({Vector2 screenSize}) {
size = screenSize;
@override
Future<void> onLoad() async {
await images.load('zap.png');
await images.load('boom3.png');
cellSize = size / gridSize;
halfCellSize = cellSize * .5;
@ -67,12 +70,6 @@ class MyGame extends BaseGame {
Timer.periodic(sceneDuration, (_) => spawnParticles());
}
@override
Future<void> onLoad() async {
await images.load('zap.png');
await images.load('boom3.png');
}
/// Showcases various different uses of [Particle]
/// and its derivatives
void spawnParticles() {