formatting files

This commit is contained in:
renato.soares
2019-08-09 15:26:48 -03:00
committed by Erick (CptBlackPixel)
parent ccc4677663
commit 110aa376d8
2 changed files with 10 additions and 6 deletions

View File

@ -21,12 +21,14 @@ class TiledGame extends BaseGame {
}
void __addCoinsInMap(TiledComponent tiledMap) async {
final ObjectGroup obj = await tiledMap.getObjectGroupFromLayer("AnimatedCoins");
final ObjectGroup obj =
await tiledMap.getObjectGroupFromLayer("AnimatedCoins");
if (obj == null) {
return;
}
for (TmxObject obj in obj.tmxObjects) {
final comp = AnimationComponent(20.0, 20.0, Animation.sequenced('coins.png', 8, textureWidth: 20));
final comp = AnimationComponent(
20.0, 20.0, Animation.sequenced('coins.png', 8, textureWidth: 20));
comp.x = obj.x.toDouble();
comp.y = obj.y.toDouble();
add(comp);