Hi, I’m just going to make a Thread devoted to questions on my Tile Based game rather than making a bunch of different ones every few weeks. I’m probably going to have numerous questions, and I’d like to point out I’m not asking for code. I’m probably mostly going to be asking questions on ideas of the best way to do things for processing speed, memory, and ease of programming later on.
For instance, my current question is the following:
I currently have ground tiles and water tiles for my tile based game. I showed my friend what I have so far and he said the only thing he would change (as of now) is to add edges to the water so they aren’t blocky. Now, I have thought of 2 different ways to do this. One would require more memory and storage, while the other would require quicker processing.
1.
The first and obvious solution is to create a water tile for each possible edge that it can have. However, this means I need loads more tiles (Just think, I would need each possible variations of how the tile can be bordered). This would need more storage and memory to keep track of the extra tiles. Also, it would make the map making (Which are 2D arrays) a bigger hassle.
2.
My second solution is to write some sort of algorithm so when the map is created the game will place extra water tiles first (on the outsides of all water), and then place the ground tiles on top. I would remove the corresponding edges of the ground tile with a sine curve or something similar leaving the water below it. Along with this, I can specify which type of wall a tile might make with water (Straight, beach-like, etc). The problem with this is that it may take extra processing power and might be a little difficult to get working as I haven’t thought this the whole way through yet.
If you have an opinion you can post it on the thread. As of now I’m leaning toward the second option. Also, I want to make sure it’s okay to just make a Thread devoted for this specifically. I’m planning to post questions such as the above.
Thanks for any Help,
SoupHead
EDIT: Also, my Title is terrible in description but I can’t think of anything else to change it to since I’m planning on it being general.