Android Dynamic 2D Map

Posted by Deltharis on Game Development See other posts from Game Development or by Deltharis
Published on 2013-06-11T09:23:02Z Indexed on 2013/10/19 10:17 UTC
Read the original article Hit count: 210

Filed under:
|
|
|

My problem is, I want to create a 2D tiled map. Yes, I know it's been asked a lot. I've seen answers that propose the use of tiled however it only allows (or so it seems to me) to generate static maps that do not change once generated. And I need a large empty uniform space of empty tiles, upon which players may place various buildings (some spanning more than one tile and logically being the same one).

How to approach this in Android? Do I make some kind of TableLayout, use arbitrarly large amount of rows and imageviews (with my emptyTile), than somehow work event-based changing of image ids from there? I'd think that only a portion of that map should be visible at a time, but I don't see how scrolling around could be the part of that structure.

© Game Development or respective owner

Related posts about 2d

Related posts about android