[ANSWERED] Question about My Method of Animation and Quads
Posted: Sat May 23, 2020 1:23 am
I know that this will end with "whatever I prefer", but I like to know your opinion on this.
So, I have 2 main approaches of handing animation:
#1 - The traditional-Tutorial Way (Setting Up Several Quads to be accessed for every framerate tick)
#2 - Using only 1 Quad and resetting its viewport for every framerate tick.
I know there's the more convenient way of Using an already-existing Library, but Love2D is a Framework for a reason. So that's not an option for me.
If you guys were to choose for me, which method would you prefer and why?
So, I have 2 main approaches of handing animation:
#1 - The traditional-Tutorial Way (Setting Up Several Quads to be accessed for every framerate tick)
Code: Select all
function love.load()
quads = {
quad1, quad2, ..., quadN
}
end
Code: Select all
function love.update()
... -- Frame-rate is Assumed
quad:setViewport(frame_x + (frame_no * frame_size), frame_y, frame_size, frame_size, img_w, img_h)
...
end
If you guys were to choose for me, which method would you prefer and why?