Creating the world

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
xpali2
Prole
Posts: 8
Joined: Thu Apr 05, 2018 4:47 pm

Creating the world

Post by xpali2 » Fri Jun 08, 2018 9:56 am

Hi,

I am working on a small game that uses some pretty big levels. It's top down so when using the world as just a background image there is no need for collision. But what is the best way to create a world? Do I need to make tiles and load them in? How would I do that? Maybe some of you have experience with this and can help me out.

Thanks,

Xpali2

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Creating the world

Post by KayleMaster » Fri Jun 08, 2018 3:02 pm

Tiles would be your best bet.
Then you can use something like Tiled to arrange those tiles into your level.
Then you use Cartographer or STI library to import those into LOVE.

xpali2
Prole
Posts: 8
Joined: Thu Apr 05, 2018 4:47 pm

Re: Creating the world

Post by xpali2 » Sun Jun 10, 2018 12:54 pm

KayleMaster wrote:
Fri Jun 08, 2018 3:02 pm
Tiles would be your best bet.
Then you can use something like Tiled to arrange those tiles into your level.
Then you use Cartographer or STI library to import those into LOVE.
Do I connect the image tiles before or after the game has started?

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Creating the world

Post by KayleMaster » Sun Jun 10, 2018 7:05 pm

I'm not sure what you mean with 'connect', can you elaborate?

xpali2
Prole
Posts: 8
Joined: Thu Apr 05, 2018 4:47 pm

Re: Creating the world

Post by xpali2 » Mon Jun 11, 2018 7:15 pm

Do I make tiles that I then make into one big image and load that image into love to place it as a world object, or do I load the tiles into love and then use a world object to place them in position.

User avatar
zorg
Party member
Posts: 2325
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Creating the world

Post by zorg » Mon Jun 11, 2018 8:53 pm

That's two separate things you're either confusing or talking about.

You can have many separate tile images, load them into löve, and draw them at specific spots, or
you can have one combined atlas of the tiles, load that into löve, define Quads and use a SpriteBatch to draw tiles from that one atlas.

The second version may be faster.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

KayleMaster
Party member
Posts: 190
Joined: Mon Aug 29, 2016 8:51 am

Re: Creating the world

Post by KayleMaster » Tue Jun 12, 2018 7:52 am

I think I understand, you mean whether you should draw your world and put it in a whole image, and draw that in the game, or do it the one of the ways zorg described.
Generally it's done with a spritebatch and an atlas.

xpali2
Prole
Posts: 8
Joined: Thu Apr 05, 2018 4:47 pm

Re: Creating the world

Post by xpali2 » Wed Jun 13, 2018 3:00 pm

KayleMaster wrote:
Tue Jun 12, 2018 7:52 am
I think I understand, you mean whether you should draw your world and put it in a whole image, and draw that in the game, or do it the one of the ways zorg described.
Generally it's done with a spritebatch and an atlas.
And those are tiling programs? Yes that is what I meant.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests