Tiled Map Renderer does not use Sprite Batch? #1099
Closed
octopus198
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new to both Monogame and Monogame Extended. I have a question regarding the
TiledMapRendererDraw method. So from the doc:protected override void Update(GameTime gameTime)
I see no
SpriteBatch, and when I add_spriteBatch.Begin(transformMatrix: _camera.GetViewMatrix());, it does not add any effect to the map (does not scale it as expected). Looking into theTiledMapRendererclass, I see that it uses theGraphicsDevice.DrawIndexedPrimitives(), which does not involve SpriteBatch at all.So if I understand correctly, when drawing a map (the background) I don't need to use SpriteBatch, just use the Draw method of
TiledMapRenderer, and for other sprites (character, objects, NPCs,... anything not belong to background), I'll use SpriteBatch Draw, is that it?Thanks in advanced.
Beta Was this translation helpful? Give feedback.
All reactions