mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	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:
		| @ -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), | ||||
|           ), | ||||
|         ); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Erick
					Erick