aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:34 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:34 +0100
commitadd9ec2b23eacfb1994da8694e51f87cc0ce7c0a (patch)
tree383133968be8f07a7cef4858f7790e16811509a4 /Scripts/drawing.gd
parent496bede74836502c024d132e0c7d86664e753cf0 (diff)
parent041ce9927f269ce55cb5a5dfa1e3f9f668590fcf (diff)
download2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.gz
2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.bz2
2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.zip
added road smoothing
Diffstat (limited to 'Scripts/drawing.gd')
-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()