Page 1 of 1

Can I use spritesheets with löve

Posted: Tue Jun 16, 2020 6:08 am
by WortWal
Can I use spritesheets with löve ? I hadn't found anything in the docs :cry:

Re: Can I use spritesheets with löve

Posted: Tue Jun 16, 2020 9:15 pm
by Stifu
WortWal wrote: Tue Jun 16, 2020 6:08 am Can I use spritesheets with löve ? I hadn't found anything in the docs :cry:
Yes, but you have to code the whole thing.
Example: https://github.com/thomasgoldstein/zabu ... r/rick.lua

Re: Can I use spritesheets with löve

Posted: Wed Jun 17, 2020 5:07 am
by zorg
https://love2d.org/wiki/SpriteBatch <- This is what you want.

Re: Can I use spritesheets with löve

Posted: Thu Jun 18, 2020 3:57 pm
by steVeRoll
zorg wrote: Wed Jun 17, 2020 5:07 am https://love2d.org/wiki/SpriteBatch <- This is what you want.
I think they meant sprite sheets, as in drawing parts of an image.

You can do just that using Quads. First, you create the quads, then you draw the original image with the quad as the second parameter.

Re: Can I use spritesheets with löve

Posted: Sat Jun 20, 2020 6:33 pm
by D0NM
WortWal wrote: Tue Jun 16, 2020 6:08 am Can I use spritesheets with löve ? I hadn't found anything in the docs :cry:
This nifty tool could help u to obtain sprites quads (regions) from the spritesheet and
generate a ready to use .lua file

https://github.com/25A0/Quadtastic

Image

Re: Can I use spritesheets with löve

Posted: Sun Jun 21, 2020 1:33 am
by hoistbypetard
D0NM wrote: Sat Jun 20, 2020 6:33 pm This nifty tool could help u to obtain sprites quads (regions) from the spritesheet and
generate a ready to use .lua file

https://github.com/25A0/Quadtastic
Wow. Thank you for sharing that. That's great.