- Home /
Adding map through script
Hi, This is more of a conceptual question rather than a straight 'I need help with this snippet of code' one. I am working on a game that requires a randomly generated hexagonal map for the players to move on. I have also created GUI through scripts for the various screens of the game (for example, using gui.button, gui.window, gui.box, etc.). I have searched extensively on here but I haven't found a definitive answer (and in the process of looking I think I confused myself more); what would be the proper general way to add a map through a script? Some things to keep in mind - the map will need to be displayed inside a gui.box/group. - I don't know the proper order of doing things. What I think I know is... 1. I need prefabs of each terrain type for a hexagon. 2. I need to create a grid of blank hexagons and fill them with instances of the prefabs
So, I know this is kind of an open ended/vague question but the type of answer I'm hoping for is something along the lines of First, you need to create prefabs Second, you need to do such and such Third, you need to do so and so
Any help would be greatly appreciated or if there is a tutorial somewhere that I missed that would be great too. Thanks in advance. erik