object array mobile development
Posted
by mixm
on Stack Overflow
See other posts from Stack Overflow
or by mixm
Published on 2010-04-29T16:54:37Z
Indexed on
2010/04/29
16:57 UTC
Read the original article
Hit count: 414
Im currently creating a tile-based game for android. Using java via dalvik JVM. im fretting over a decision to represent objects in a particular map. should i use an id based map (2 dimensional integer array) and place game logic in a separate function in the game engine, or create an object array (2 dimensional array of game objects) and store game logic within the class methods. i am thinking about the cost of object creation and garbage collection vs extensibility.
© Stack Overflow or respective owner