Possibility to initialize all PositionComponents from onLoad (#1113)

* Fix ParallaxComponent constructor

* Fix sizing bug parallax_component

* Unify TextComponent and TextBoxComponent

* Fix tests

* Update PositionComponent docs

* Add changelog entry

* Apply suggestions from code review

Co-authored-by: Erick <erickzanardoo@gmail.com>

* Fix analyze issue

* Apply suggestions from code review

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* Fix line length in components.md

Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
This commit is contained in:
Lukas Klingsbo
2021-11-18 11:42:12 +01:00
committed by GitHub
parent f777e1a0ea
commit 12fd07e5ae
20 changed files with 197 additions and 120 deletions

View File

@ -65,6 +65,6 @@ class SandBoxLayerParallaxGame extends FlameGame {
baseVelocity: Vector2(20, 0),
);
add(ParallaxComponent.fromParallax(parallax));
add(ParallaxComponent(parallax: parallax));
}
}