Page 1 of 1

Tilemap help

Posted: Sun Apr 17, 2011 8:13 am
by Anxiety
The wiki has a tilemap tutorial (http://love2d.org/wiki/Tutorial:Efficie ... _Scrolling). I tried it, and it works all fine. But im wondering about one thing; how can i change what the map generated is? Its for a new game im making (again, lol).

Thanks!

Re: Tilemap help

Posted: Sun Apr 17, 2011 8:24 am
by BlackBulletIV
I haven't got time to look at the tutorial, but I think it would have something to do with either adjusting the Quad viewports (x, y, width, height) or changing the positions of where you add tiles to the SpriteBatch. kikito has a tutorial on tiles; it's still a work in progress, but it might help.

Re: Tilemap help

Posted: Sun Apr 17, 2011 8:45 am
by Lafolie
You need to create another map table and use that. If you're talking about the actual contents of the map, then you either need to change the section of code that creates the map object (the nested for loops) or create some kind of level editor - this would probably be overkill for you.

Re: Tilemap help

Posted: Sun Apr 17, 2011 9:23 am
by Anxiety
Lafolie wrote:this would probably be overkill for you.
true dat

I quess ill use a 2D table with letters and convert that to a map.