mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Migrate examples to null-safety (#707)
This commit is contained in:
		| @ -20,14 +20,14 @@ class LogoCompomnent extends SpriteComponent with HasGameRef<DebugGame> { | ||||
|     final rect = toRect(); | ||||
|  | ||||
|     if ((x <= 0 && xDirection == -1) || | ||||
|         (rect.right >= gameRef.size.x && xDirection == 1)) { | ||||
|         (rect.right >= gameRef!.size.x && xDirection == 1)) { | ||||
|       xDirection = xDirection * -1; | ||||
|     } | ||||
|  | ||||
|     y += yDirection * speed * dt; | ||||
|  | ||||
|     if ((y <= 0 && yDirection == -1) || | ||||
|         (rect.bottom >= gameRef.size.y && yDirection == 1)) { | ||||
|         (rect.bottom >= gameRef!.size.y && yDirection == 1)) { | ||||
|       yDirection = yDirection * -1; | ||||
|     } | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Luan Nico
					Luan Nico