Open fossegutten opened 3 years ago
This shouldn't be too hard :
Vector2 ParallaxFactor
property to TiledMapLayer
The rest could be handled by the user for now, like this for example, using an OrthographicCamera
:
foreach (var tiledMapLayer in _tiledMap.Layers)
{
_tiledMapRenderer.Draw(tiledMapLayer, _camera.GetViewMatrix(tiledMapLayer.ParallaxFactor));
}
Add a Vector2 property for the new Parallax Factor property in TiledMapLayer class.