hey everyone,
I am trying to create an sfml program that loads a map from a .txt file
Let's say the .txt file contains the following
0 0 0 0 1 1
2 3 2 0 0 0
0: is land
1: is a human
2: is bridge
3 : anything
I want to load a complete map meaning that the map should be interconnected for instance the rest of the objects are on land also. How can I do this? I wanted to build my own code but I can't find online resources for reading from a .txt file that way.
Please help
Thanks