SFML community forums
Help => General => Topic started by: ozwurld on August 27, 2014, 03:42:19 pm
-
Good day all,
I need to draw a really complex maze for a game that im making and would like to find out if it is possible to draw the maze based on a mapping that i have in a .txt file
-Thanks!
-
Of course it is possible, as for how to do it? Well that is your job as a programmer to figure out. We welcome specific questions about SFML here, but generic how to solve XXX problems we will not help with. Especially when you have shown no initiative that you have already attempted to solve the problem you are asking about.
-
In the SFML tutorials, there is an example for displaying mapped tiles. As for parsing the text file, you may have to customise your own loader if it's in your own custom format.
-
Or instead of parsing text files you could use Tiled (http://WWW.map editor.org/) and one of the loaders that exist for its format (search the forum).
-
Thanks for the hint, I really appreciate it everyone. :)