mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 00:48:47 +08:00 
			
		
		
		
	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:
		| @ -39,7 +39,7 @@ class AnimationParallaxGame extends FlameGame { | ||||
|       baseVelocity: Vector2(20, 0), | ||||
|     ); | ||||
|  | ||||
|     final parallaxComponent = ParallaxComponent.fromParallax(parallax); | ||||
|     final parallaxComponent = ParallaxComponent(parallax: parallax); | ||||
|     add(parallaxComponent); | ||||
|   } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo