More followups from #667 : Unifying constructor logic + small improvements and docs (#681)

This commit is contained in:
Luan Nico
2021-02-23 17:38:19 -05:00
committed by GitHub
parent 9c38c9bd04
commit 062b73d5f5
14 changed files with 89 additions and 55 deletions

View File

@@ -4,6 +4,7 @@ import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'assets/images.dart';
import 'extensions/image.dart';
import 'extensions/vector2.dart';
import 'flame.dart';
import 'game/game.dart';
@@ -145,7 +146,7 @@ class SpriteBatch {
int get height => atlas.height;
/// The size of the [atlas].
Vector2 get size => Vector2Extension.fromInts(width, height);
Vector2 get size => atlas.size;
SpriteBatch(
this.atlas, {