Hey everyone,
I’m relatively new to Unity and want to make a tower defense game, constantly updating and improving it step by step. Though I’m a bit stuck on how to create the map. I’ve found a couple solutions and would really appreciate if anyone could help me with the best option and any possible pointers on how to start with these. I’m really in doubt about what to do here. By the way I’m a bit more known with java, though as I noticed most people in unity write in C#, I’m trying to get a better understanding of this and write my code in C#.
-
Buildplaces - I created a map by making 700 cubes and set them as “buildplaces”, setting the x and y coord per cube manually and adding some textures to them. Though especially for making multiple levels this takes a long time and doesn’t seem like the best way to go, but at least it’s easy to do. Only wondering here if this doesn’t make my game use up a lot of MB’s and run slower as you’d use so much cubes per level.
-
Creating a grid where you have 32 by 32 tiles and you can just paint the sprites from your tileset on them by mouseclicking. I could not really find on how to create a grid like this and my scripting/coding skill is still low, which doesn’t make it easier to get a clear grip of where to start on this.
-
Using TILED to make your map and import it to Unity. Here I’m unsure if you can set the tile settings in Unity with adding prefabs and other stuff. If so, this seems like a pretty easy solution.
I’m wondering on the opinion of people who have more coding experience on what the best way to create a 2D map is. Thanks for your time in advance. Any pointers are tremendously appreciated.