Starting work on animations

This commit is contained in:
Ryan Ward 2022-12-29 00:57:01 -05:00
parent 3844862585
commit eb9274787c

View File

@ -10,7 +10,7 @@ local band, bor = bit.band, bit.bor
local cursor_hand = love.mouse.getSystemCursor("hand") local cursor_hand = love.mouse.getSystemCursor("hand")
local clips = {} local clips = {}
local max, min, abs, rad, floor, ceil = math.max, math.min, math.abs, math.rad, math.floor,math.ceil local max, min, abs, rad, floor, ceil = math.max, math.min, math.abs, math.rad, math.floor,math.ceil
local frame, image, text, box, video = 0, 1, 2, 4, 8 local frame, image, text, box, video, anim = 0, 1, 2, 4, 8, 16
local global_drag local global_drag
local object_focus = gui local object_focus = gui
@ -848,7 +848,7 @@ end
-- Draw Function -- Draw Function
--local label, image, text, button, box, video --local label, image, text, button, box, video, animation (spritesheet)
local drawtypes = { local drawtypes = {
[0] = function(child, x, y, w, h) end, [0] = function(child, x, y, w, h) end,
[1] = function(child, x, y, w, h) [1] = function(child, x, y, w, h)
@ -893,6 +893,9 @@ local drawtypes = {
end end
end end
end, end,
[16] = function(child, x, y, w, h)
--
end,
} }
local draw_handler = function(child) local draw_handler = function(child)