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?