Tilemap help

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Anxiety
Prole
Posts: 49
Joined: Sat Apr 02, 2011 9:36 am
Location: Finland

Tilemap help

Post by Anxiety » Sun Apr 17, 2011 8:13 am

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!
I can't come up with a good signature!

User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Tilemap help

Post by BlackBulletIV » Sun Apr 17, 2011 8:24 am

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.

User avatar
Lafolie
Inner party member
Posts: 804
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Tilemap help

Post by Lafolie » Sun Apr 17, 2011 8:45 am

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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.

User avatar
Anxiety
Prole
Posts: 49
Joined: Sat Apr 02, 2011 9:36 am
Location: Finland

Re: Tilemap help

Post by Anxiety » Sun Apr 17, 2011 9:23 am

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.
I can't come up with a good signature!

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests