Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit 47b86c1862 - Show all commits

View file

@ -64,6 +64,18 @@ function Math.either(bool, val1, val2)
end
end
function Math.wrap(val, min, max)
while (val < min) do
local diff = ((min-1) - val)
val = max - diff
end
while (val > max) do
local diff = ((max+1) - val)
val = min + diff
end
return val
end
-- VECTOR/DIRECTION functions
-- Easy-to-use function to handle point and motion