Adding flame_lint and removing dart code metrics (#1049)

* Adding flame_lint and removing dart code metrics

* Update packages/flame_flare/example/pubspec.yaml

* updating analyze action

* adding missing dardoc dep on flame_lint

* removing test folder from the lint package

* fixing sdk versions

* license and changeog fix

* Update packages/flame_lint/README.md

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* additional readme fix

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
This commit is contained in:
Erick
2021-10-26 20:50:30 -03:00
committed by GitHub
parent 321a3db88d
commit 3bdb90fb5c
52 changed files with 325 additions and 1310 deletions

View File

@ -42,10 +42,12 @@ class ExampleGame extends OxygenGame with FPSCounter {
..add<SpriteComponent, SpriteInit>(
SpriteInit(await loadSprite('pizza.png')),
)
..add<VelocityComponent, Vector2>(Vector2(
random.nextDouble() * 100 * (random.nextBool() ? 1 : -1),
random.nextDouble() * 100 * (random.nextBool() ? 1 : -1),
));
..add<VelocityComponent, Vector2>(
Vector2(
random.nextDouble() * 100 * (random.nextBool() ? 1 : -1),
random.nextDouble() * 100 * (random.nextBool() ? 1 : -1),
),
);
}
}
}