I am thinking of restarting a game I was working on and I wanted it to be very easy to add new objects into the game without having to get into my code every time. In games with alot of tiles for the same kind of object how do people generally handle it? I was thinking if I had say a wall class, it would read from a txt file containing its name, location and other important attributes/rules.
For instance something like this for a water class.
water.txt
Name = "pond_tile"
Location = "forest" + "town"
Animate = "false"
Sprite = "pond_tile.png"
///////////////////////////////////////////////
Name = "river_tile"
Location = "forest" + "jungle" + "town" + "desert"
Animate = "true"
Sprite = "river_tile.png"
I think I want to get the core game out of the way and have just one type of tile for each class at the beginning. After the games how I want it I could pump out loads of tile types and biomes this way. Another benefit would be the ease of modding a game with a set up like this which I’d love to support. I was just thinking of ideas and kind of remember a game might have used something similar… minecraft? A couple questions I have are “Is there better ways to do this?”, “Any downsides?”, “Have any of you used something similar”, and “How did it work out for you?”. Pretty broad topic, maybe could have been in Game Play and Design but am looking forward to any input.