Search found 2 matches

by Verfin
Tue Feb 07, 2012 4:33 pm
Forum: Support and Development
Topic: How to load map from txt file
Replies: 6
Views: 4946

Re: How to load map from txt file

Thank you for these replies! Guess I just had wrong keywords when I tried to search.
by Verfin
Mon Feb 06, 2012 6:38 pm
Forum: Support and Development
Topic: How to load map from txt file
Replies: 6
Views: 4946

How to load map from txt file

I'm making this tilemap thingie when the problem struck me. I used this code to save the map for y = 1 , mapheight do file:write("\n") for x = 1, mapwidth do if x == 1 then file:write(map[x][y][0]) else file:write("," .. map[x][y][0] ) end end end and the text it generates looks ...