I'm working on a harvest moon type game and I've already created lots of assets and have a working player. Now the issue is with the tile map. I use Tiled Map Editor to make the map and it renders fine.
But if I want to be able to turn grass into farmland and plant seeds and such to allow crops to grow, how would I do that?
It would be rather simple using different classes like a Farmland and Crop class and make so that Farmland has a Crop currentCrop; attached to it. But putting this together while still using a Tilemap editor seems rather difficult, since I don't actually get any Tile objects from the .tmx.
The way I could do it with Tiled is in my MapManager class I could have a
public void setCell(int x, int y, int type) { Cell cell = new Cell(); switch(type) { case 0: cell.setTile(map.getTileSets().getTile(0); break; } etc.
But it feels like that would be a pain to keep track on how much thing have grown and so on and just feels like a clumsy system.
Am I going about this the right way?
Thanks in advance!