private void SetUpGround(Scene scene) { for (var i = 0; i < 10; i++) { const double groundWidth = 336; const double offsetToTheLeft = 2 * groundWidth; var initialX = i * groundWidth - offsetToTheLeft; var ground = _entityFactory.CreateGround(); ground.GetComponent <Transform2DComponent>().Translation = new Vector2(initialX, -350); scene.AddEntity(ground); } }