3L3U73SCMSLODGVCE4BAH57U4J44DJAPT53JOIESZGJSG4RNUMCQC
PMAUMC7DNSQUUKKJW3DPNAFMSSBQBJJCYKWZFDTTCU6ZPXG5S5HQC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
OIZB23GPQYDKBIZPB2TXBDQCJCWQUCWUX3SWPGHXY5HXNVQABBYQC
B3I5MC55KGDCKCCC6VTSZXCTMWULONPWPBL6PKBME7TOCODWONDQC
RKCJBAJPRQAB3PYHETZFU6347F5YQXWYRMDNSVJINLY2EK2DE4EAC
5HBC66CSFQ257TO3DJYBUNKE5RKR47CUJNMYP6Y4F7T6W7LNRV4AC
KNNHAHIBSWRPCQ2DIUO22F2JSSQCHEQ5DP4R6YE4XCA3ALC4BSUAC
BF7TW3EKRIDYC6J2Q2J4YOBAVQF55Y3H6KGZIHNXMH4N72MR6GXQC
populate_collision_data = function()
for _,def in pairs(Definitions) do
assert(def.w)
assert(def.h)
if def.pos == nil then def.pos = {} end
if def.hs == nil then def.hs = {} end
def.hs.x = def.w/2
def.hs.y = def.h/2 + 30
def.pos.x = def.x + def.hs.x
def.pos.y = def.y + def.hs.y
end
end
for _,def in pairs(Definitions) do
assert(def.w)
assert(def.h)
if def.pos == nil then def.pos = {} end
if def.hs == nil then def.hs = {} end
def.hs.x = def.w/2
def.hs.y = def.h/2 + 30
def.pos.x = def.x + def.hs.x
def.pos.y = def.y + def.hs.y
if def == target then
def.hs.x = def.hs.x + 50
def.hs.y = def.hs.y + math.max(30, math.min(def.h/3, 200))
end
end
populate_collision_data()
-- give the target a little more buffer
target.hs.x = target.hs.x + 50
target.hs.y = target.hs.y + math.max(30, math.min(target.h/3, 200))