Page 1 of 1

Creating the world

Posted: Fri Jun 08, 2018 9:56 am
by xpali2
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

Re: Creating the world

Posted: Fri Jun 08, 2018 3:02 pm
by KayleMaster
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.

Re: Creating the world

Posted: Sun Jun 10, 2018 12:54 pm
by xpali2
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?

Re: Creating the world

Posted: Sun Jun 10, 2018 7:05 pm
by KayleMaster
I'm not sure what you mean with 'connect', can you elaborate?

Re: Creating the world

Posted: Mon Jun 11, 2018 7:15 pm
by xpali2
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.

Re: Creating the world

Posted: Mon Jun 11, 2018 8:53 pm
by zorg
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.

Re: Creating the world

Posted: Tue Jun 12, 2018 7:52 am
by KayleMaster
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.

Re: Creating the world

Posted: Wed Jun 13, 2018 3:00 pm
by xpali2
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.