diff options
| author | heav <hheav3@gmail.com> | 2022-12-27 23:16:22 +0000 |
|---|---|---|
| committer | heav <hheav3@gmail.com> | 2022-12-27 23:16:22 +0000 |
| commit | 2095c56c2b48e6c4e87f7a5e2bdb6a4679b85a24 (patch) | |
| tree | d6a41ee4b4b2a22f151176366e5be972470146d4 /debug_arrow.lua | |
| parent | df189a048a64e1982455ac1a1520a20a2412339d (diff) | |
sdfjkhkgfhsdgkldfgklsdfhghbvxcmvcn bee.
Diffstat (limited to 'debug_arrow.lua')
| -rw-r--r-- | debug_arrow.lua | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
