Jump to content
  • Advertisement

RTS tile based map drawing

This topic is 416 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello Can anyone point me to the right direction as to  how to efficently draw map for a tile based  RTS / RPG ? I currently have 100*100 grid of tiles  represented by a javafx grid pane  each grid grid holds a Stack Pane with button at the bottom (click on tile to move a unit there or to pick up items)  a tile image on top then an arraylist of items drawn  that are on the tile (sword potion,  armor ECT.) then the tile occupant drawn (there can only be  one tile occupant)   Solider , enemy,  bookshelf , Wall, Tree ECT. Then, the items are drawn  if there is no occupant.  if there is an occupant there no items are drawn even if there are any.   I currently draw the map and then  re draw each individual tile  as then man moves and leaves from their it is slow and you never see the men move just teleport. What am I doing wrong?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!