From 2095c56c2b48e6c4e87f7a5e2bdb6a4679b85a24 Mon Sep 17 00:00:00 2001 From: heav Date: Tue, 27 Dec 2022 23:16:22 +0000 Subject: sdfjkhkgfhsdgkldfgklsdfhghbvxcmvcn bee. --- debug_arrow.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 debug_arrow.lua (limited to 'debug_arrow.lua') diff --git a/debug_arrow.lua b/debug_arrow.lua new file mode 100644 index 0000000..ed79a9a --- /dev/null +++ b/debug_arrow.lua @@ -0,0 +1,18 @@ +local M = {} +M.queue = {} + +M.arrow = function(x1, y1, x2, y2, r, g, b) + table.insert(M.queue, {x1, y1, x2, y2, r, g, b}) +end + +M.draw = function() + for i, v in ipairs(M.queue) do + local x1, y1, x2, y2, r, g, b = unpack(v) + set_color(r,g,b) + line(x1, y1, x2, y2) + love.graphics.circle("fill", x2, y2, 1) + end + M.queue = {} +end + +return M \ No newline at end of file -- cgit v1.2.3