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5DIEY574HUGP2DGOQNUVOAC
RNH2W5MPZBXJ6QCAXLYPU72ILMPMIDBKTMSENFWUK3ESZXSTUP7QC
QZA5SWQKZDFIKPD72DUNGRUJM7F3DB4IAF74AYMGM4FIMQMMQQFQC
UNPWB53SP3OIN2FEUK6L3YCKYXWEKPRGU3MPGGVLHH2WDTIR4TFQC
7P3EK7K2AWA3YDMQBFWJY4TVIKGJ5LI7E4P4F7Z2CVAGVETA3JHAC
draw_debug_definitions = function()
for k,def in pairs(Definitions) do
App.color{r=1, g=0, b=0}
-- love.graphics.rectangle('line', vx(def.x-20), vy(def.y-20), scale(620), scale(30))
love.graphics.rectangle('line', vx(def.x-20), vy(def.y-20), scale(def.w+20), scale(def.h+60))
end
for _,cand in ipairs(Spawn_candidates) do
App.color{r=0.4, g=0.8, b=0.4}
love.graphics.rectangle('line', vx(cand.x), vy(cand.y), scale(800), scale(140))
love.graphics.print(cand.name, vx(cand.x), vy(cand.y))
end
end
-- return true if a is less than some distance from b
overlapping_areas = function(a, b)
return overlapping_intervals(a.x, a.x+a.w, b.x-20, b.x+b.w+20)
and overlapping_intervals(a.y, a.y+a.h, b.y-20, b.y+b.h+60) -- leave more space below existing definitions
end
Spawn_candidates = {}
for _=1,10 do
local result = {w=600, h=100}
result.x = math.random(Viewport.x, Viewport.x+Viewport.w)
result.x = round(result.x/100)*100
result.y = math.random(Viewport.y, Viewport.y+Viewport.h)
if _ == 10 or not overlaps_any_definition(result) then
result.w, result.h = nil
result.x = result.x + 100
result.y = result.y + 20
return result
end
table.insert(Spawn_candidates, result)
end
end
animate(new_definition)
elseif chord == 'M-1' then
if Debug_draw_fn ~= draw_debug_ui1 then
Debug_draw_fn = draw_debug_ui1
else
Debug_draw_fn = nil
end