Hello everyone. I’m working on a tile based game, but I’m not making the game engine right away, instead I’m building the tile editor to export the format I’m looking for and then build the engine around that. I figured I didn’t need to create my own parser and I could just use beanshell (a java interpreter that can be called from java) to load in data from the file. This seems to work well, and I was able to load in beanshell files and see the tiles in the editor and save them by printing out beanshell statements to a output stream. I’m wondering if xml is better then using beanshell, if it is, please tell me. I want to create a tile selector that shows associated tiles next to each other in a 2D grid, I’m not sure how to code this.
And I’m wondering about the size of the tiles, should they be powers of 2? if I could make them small ie. 32x32 it would allow me to add more detail and smaller things to the map, the reason for this is there might be a big 64x64 brick wall tile and a plant tile that only takes up 32x32 pixels, it might be useful to break the brick wall up into 4 32x32 tiles so the small plant can be placed on the map without taking a whole 64x64 tile space and possibly blocking the player when he walks on a part of the tile not occupied by the plant. So how do I break up the tiles and keep the divided tiles in seperate files, but also allow them to be read in a way they can be view side by side in the tile selection grid.
PS: please tell me the width and height of the tiles in secret of mana 2 if you know these specs