diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 22:11:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 22:11:58 -0700 |
commit | 3dccd7f81abff050a37b5a65eb5e3cc6756a4b7f (patch) | |
tree | 55bfdeca3143b269616f348efa29869f74db3cef /geom.lua | |
parent | e68d235c5fd455c6629f14b7219d376049c61481 (diff) | |
download | text.love-3dccd7f81abff050a37b5a65eb5e3cc6756a4b7f.tar.gz |
stop pretending globals are local
One advantage of this approach: we don't end up with multiple lexical scopes containing duplicates of the same modules.
Diffstat (limited to 'geom.lua')
-rw-r--r-- | geom.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/geom.lua b/geom.lua index ef3cbcf..891e98d 100644 --- a/geom.lua +++ b/geom.lua @@ -1,4 +1,4 @@ -local geom = {} +geom = {} function geom.on_shape(x,y, drawing, shape) if shape.mode == 'freehand' then @@ -166,5 +166,3 @@ function geom.angle_between(ox,oy, x,y, s,e) end function geom.dist(x1,y1, x2,y2) return ((x2-x1)^2+(y2-y1)^2)^0.5 end - -return geom |