aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-07-09 16:21:38 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-07-09 16:21:38 +0100
commitb384856adeed758ce3fe395f6b973639f21fc4d8 (patch)
treeb4d55d1af8201aba3786c5c9158d68cb4ea0564c /Scripts/drawing.gd
parentae7b7226c64e7b9ce62e045991c315040563fe5a (diff)
download2023-b384856adeed758ce3fe395f6b973639f21fc4d8.tar.gz
2023-b384856adeed758ce3fe395f6b973639f21fc4d8.tar.bz2
2023-b384856adeed758ce3fe395f6b973639f21fc4d8.zip
add borders
Diffstat (limited to 'Scripts/drawing.gd')
-rw-r--r--Scripts/drawing.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index c45196b..a8068a2 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -17,13 +17,15 @@ func start_drawing():
func _end_drawing():
drawing = false
line.simplify()
+ line.draw_borders()
+ for point in line.points:
+ path.curve.add_point(point)
owner.set_driving(true)
func _input(event):
if drawing and event is InputEventMouseMotion:
line.add_point(event.position)
- path.curve.add_point(event.position)
func reset():