Search code examples
lualove2dcartesian-coordinates

Merge quads ( sprite tile ) to create a new image


In lua you have quads that are part of an image. I split my sprites using quads I have a quad per ( different ) tile

My goal is to merge those quads into one image that I update only when a change occurs in my map.

Instead of looping through my map like the bonobo I am I want to blit the map image only once using this sort-of-prerender-method.

Is it possible using love2d ( lua ) ? If no, is there any other librairies than love2d that would allow that using lua ?


Solution

  • Maybe try canvases? A Canvas is used for off-screen rendering.

    https://love2d.org/wiki/Canvas