Hi Community,
this is my first post here and my first attempt to programm something in Java.
Okay straight to the problem. I develop a TileEditor and its working so far with drawing/erasing tiles, saving/loading them. But the structure is not enough for later.
At the moment i have an int[X][Y][L] map. (L = layer)
But i want to add later on status to the tiles like are they walkable or not. Are there any events on the tiles. Extra informations.
Any suggestion how to build up the class structures for that?
I thought about Map->Layer->Tile->Event. Map would be the biggest class which holds the layer. The layer holds the Tile and a tile has always an event. In the tile object i would save the status like walkable/blocking…
But how do i add objects to the map[][]?
Would you recommend saving the layer information in the tile object as well as the event object? Or should i seperate those?
Many questions so far, hope you can give me some hints.
Pls take it easy, iam new and english isnt my motherlanguage.
regards,
Freygeist