It looks like you're new here. If you want to get involved, click one of these buttons!
Ok Updated repo,It now rotates almost around Anchor points
I always used to say that there are only three numbers in computing: Zero, One and Infinity. Now I'll have to consider changing that to: Zero, One, Infinity and Almost. @-)
-- then we can created readable code using no more characters than "bottom"
-- the code is useable everywhere, without nasty type checking
MyOwnBox.new(left(), top(), right(), bottom())
-- it's also possible to use in comparisons and other places
if y>bottom() then
-- Okay this is a bit more typing but still readable
Could proper comments and documentation fix it?I also thought about an option to list dependencies of methods for each other, if someone would want to remove part of "in their opinion" unnecessary code.
local parent = self:getParent()
if parent then
parent:addChildAt(child, 1) -- not 0 but 1
Application.__exit = Application.exit
if os == "Android" then self:__exit() end
Although this function is available to all platforms, it should be used on Android only.