aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-09 18:11:12 +0200
committerLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-09 18:11:12 +0200
commit9deff914e212393dce2cabfe60f7bcd446728dc1 (patch)
tree229c520f93cf456046daaf218ab9c84f2ead0298 /Scripts/drawing.gd
parent2c468ed5981ab431be37e2f9d0a2e1cbc5dab2a9 (diff)
parentadd9ec2b23eacfb1994da8694e51f87cc0ce7c0a (diff)
download2023-9deff914e212393dce2cabfe60f7bcd446728dc1.tar.gz
2023-9deff914e212393dce2cabfe60f7bcd446728dc1.tar.bz2
2023-9deff914e212393dce2cabfe60f7bcd446728dc1.zip
Merge branch 'master' of bunny.garden:jam/gmtk/2023
Diffstat (limited to '')
-rw-r--r--Scripts/drawing.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index 832c42d..e99d4a0 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -16,6 +16,8 @@ func start_drawing():
func _end_drawing():
drawing = false
+ line.simplify()
+ line.draw_borders()
owner.set_driving(true)
@@ -30,4 +32,5 @@ func _input(event):
func reset():
line.clear_points()
+ line.clear_borders()
path.curve.clear_points()