Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Updating A Mapboard That Was Drawn on a RenderTarget2d Object ???

$
0
0

@SNaidamast wrote:

This query is sort of a follow up to a previous query I had submitted about 10 days ago regarding the ability to create a form of hidden-buffer as we used do when programming games for the DOS operating systems. Jjagg kindly responded to providing some sample source code as well, which he demonstrated with the use of a RenderTarget2D object.

At this point I am nearly done implementing his suggestions into my own strategy war game. I hope to begin testing the results in the next day or so.

However, in a strategy game the user is constantly making unit movements with the game's AI responding in kind. This would mean that new unit placements have to always be redrawn to the mapboard.

Is it a correct assumption then that in these cases the mapboard is then redrawn to the RenderTarget2D, making all the unit\sprite drawings to their new positions and then sending the RenderTarget2D object to the event that draws the map to the actual display?

As a result, the only time the RenderTarget2D object will not be redrawn is when the user is merely scrolling an existing instance of the mapboard\RenderTarget2D object...

Is this a correct understanding on how to use a RenderTarget2D object in this case?

Thank you... :relaxed:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles