[SOLVED] Tiled map generator problems
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: [SOLVED] Tiled map generator problems
If memory serves, that is correct.
Re: [SOLVED] Tiled map generator problems
Code: Select all
for yy=1,mapy do
y=hmr(yy,strlen);
for xx=1,mapx/strlen do
g=grids[string.sub(string.gsub(mapg,"\n",""),xx+y*(mapx/strlen),xx+y*(mapx/strlen))+0]
gen=gen..g[muldown(yy,strlen)];
end
gen=gen.."\n";
end
Code: Select all
grids={
{
"........",
"........",
"........",
"........",
"........",
"........",
"........",
"........"},
{
"########",
"#......#",
"#......#",
"#......#",
"#......#",
"#......#",
"#......#",
"########"}
}
![Cool :cool:](./images/smilies/ms-sunglass.png)
Just wanted to post it, in case if anyone wanted to know.
Who is online
Users browsing this forum: No registered users and 2 guests