[Solved] Different Uses of Spritebatches

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
jumptrigger
Prole
Posts: 8
Joined: Wed Sep 29, 2021 7:12 pm

[Solved] Different Uses of Spritebatches

Post by jumptrigger »

I was wondering if I have multiple tilesets if I have to use different spritebatches for each? So 5 tilesets = 5 spritebatches? I'm guessing I don't need it for single images like a barrels that I don't render to much but do I need it for animations?

Is there other ways to use it?
Last edited by jumptrigger on Thu Sep 30, 2021 6:39 pm, edited 1 time in total.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Different Uses of Spritebatches

Post by ReFreezed »

If you have multiple images then you'll need a different spritebatch for each image. If your tilesets aren't huge you could combine all tileset images into one image - then you could use a single batch for everything.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
jumptrigger
Prole
Posts: 8
Joined: Wed Sep 29, 2021 7:12 pm

Re: [Solved] Different Uses of Spritebatches

Post by jumptrigger »

Thanks for the help.
Post Reply

Who is online

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