improve track 04

This commit is contained in:
interfisch 2024-12-21 14:13:47 +01:00
parent 42cdd59e8a
commit 8609563436
2 changed files with 11 additions and 14 deletions

View file

@ -53,7 +53,7 @@ texture = ExtResource("2_mev6t")
[node name="Line2D2_right" type="Line2D" parent="."]
z_index = 1
points = PackedVector2Array(89, 92, 535, 98, 770, 93, 852, 79, 1001, -29, 1049, -136, 1103, -303, 1149, -543, 1147, -696, 1091, -809, 997, -832, 891, -816, 834, -729, 804, -589, 739, -450, 667, -407, 616, -486, 669, -606, 730, -741, 791, -794, 847, -883, 835, -957, 750, -1006, 521, -983, 329, -949, 138, -951, -3, -957, -162, -918, -190, -853, -130, -817, 13, -802, 284, -762, 324, -701, 304, -625, 204, -571, -54, -553, -307, -563, -361, -572, -397, -617, -325, -645, -4, -617, 177, -601, 248, -618, 267, -676, 197, -747, 125, -766, -263, -804, -364, -809, -479, -800, -573, -768, -630, -689, -661, -604, -653, -534, -524, -429, -390, -382, -293, -380, 27, -393, 200, -363, 293, -372, 388, -418, 397, -384, 326, -360, 142, -335, -38, -371, -218, -351, -323, -232, -274, -101, -181, -58, -79, 46, 39, 94)
points = PackedVector2Array(89, 92, 535, 98, 770, 93, 852, 79, 1001, -29, 1049, -136, 1103, -303, 1149, -543, 1147, -696, 1091, -809, 997, -832, 891, -816, 834, -729, 794, -588, 733, -456, 661, -439, 645, -494, 669, -606, 732, -727, 791, -794, 847, -883, 865, -974, 738, -1052, 521, -983, 323, -961, 131, -996, -111, -1017, -215, -959, -231, -835, -73, -811, 13, -802, 284, -762, 324, -701, 304, -625, 204, -571, -54, -553, -192, -564, -291, -568, -329, -613, -279, -637, -242, -612, 110, -600, 186, -622, 238, -674, 230, -754, 85, -774, -267, -822, -399, -822, -519, -825, -607, -804, -674, -738, -713, -637, -683, -512, -524, -429, -390, -382, -293, -380, 28, -362, 179, -383, 267, -405, 345, -432, 361, -401, 244, -360, 142, -335, -140, -346, -288, -307, -323, -232, -274, -101, -181, -58, -79, 46, 39, 94)
closed = true
width = 6.0
texture = ExtResource("3_q2khr")
@ -70,7 +70,7 @@ texture_mode = 1
[node name="Line2D2_left" type="Line2D" parent="."]
z_index = 1
points = PackedVector2Array(20, -234, 543, -237, 776, -225, 848, -269, 878, -324, 956, -476, 985, -550, 1025, -688, 955, -713, 930, -692, 814, -431, 734, -328, 660, -309, 540, -340, 504, -410, 558, -557, 636, -737, 721, -858, 731, -900, 615, -909, 561, -897, 404, -877, 332, -876, 197, -876, 67, -888, -48, -888, -20, -845, 93, -854, 219, -845, 308, -841, 399, -833, 436, -817, 469, -790, 489, -759, 495, -718, 490, -671, 482, -628, 438, -575, 379, -539, 271, -503, 150, -488, -13, -468, -282, -476, -429, -538, -483, -609, -426, -686, -297, -711, -114, -689, 23, -687, 115, -682, 115, -712, -210, -735, -418, -721, -503, -653, -521, -569, -400, -481, -185, -439, 89, -448, 267, -476, 429, -520, 474, -476, 479, -400, 464, -338, 400, -275, 76, -268, -133, -252, -151, -210, -122, -179, -35, -181, 6, -225)
points = PackedVector2Array(20, -234, 543, -237, 776, -225, 848, -269, 878, -324, 956, -476, 985, -550, 1025, -688, 955, -713, 930, -692, 814, -431, 734, -328, 660, -309, 540, -340, 504, -410, 558, -557, 636, -737, 721, -858, 731, -900, 615, -909, 561, -897, 404, -877, 332, -876, 197, -876, 68, -920, -92, -953, -98, -904, 24, -879, 238, -849, 345, -847, 399, -833, 436, -817, 469, -790, 489, -759, 495, -718, 490, -671, 482, -628, 438, -575, 379, -539, 271, -503, 150, -488, -13, -468, -282, -476, -387, -531, -446, -619, -426, -686, -318, -720, -163, -707, -70, -672, 124, -652, 128, -679, -289, -747, -485, -751, -526, -711, -521, -569, -400, -481, -183, -447, 89, -448, 267, -476, 429, -520, 474, -476, 479, -400, 470, -327, 427, -269, 76, -268, -133, -252, -151, -210, -122, -179, -35, -181, 6, -225)
closed = true
width = 6.0
texture = ExtResource("3_q2khr")
@ -185,7 +185,7 @@ position = Vector2(518, -547)
texture = ExtResource("10_y6sb7")
[node name="FieldsBush014" type="Sprite2D" parent="Scenery2D"]
position = Vector2(326, -494)
position = Vector2(333, -509)
texture = ExtResource("10_y6sb7")
[node name="FieldsBush015" type="Sprite2D" parent="Scenery2D"]
@ -193,7 +193,7 @@ position = Vector2(871, -830)
texture = ExtResource("10_y6sb7")
[node name="FieldsFlower001" type="Sprite2D" parent="Scenery2D"]
position = Vector2(-45, -260)
position = Vector2(-57, -244)
texture = ExtResource("16_1pu0v")
[node name="FieldsFlower002" type="Sprite2D" parent="Scenery2D"]
@ -205,7 +205,7 @@ position = Vector2(639, -861)
texture = ExtResource("17_upcog")
[node name="FieldsFlower004" type="Sprite2D" parent="Scenery2D"]
position = Vector2(222, -455)
position = Vector2(474, -526)
texture = ExtResource("18_g1h7o")
[node name="FieldsFlower005" type="Sprite2D" parent="Scenery2D"]
@ -245,7 +245,7 @@ position = Vector2(529, -621)
texture = ExtResource("25_xdd3e")
[node name="FieldsFlower014" type="Sprite2D" parent="Scenery2D"]
position = Vector2(251, -970)
position = Vector2(206, -999)
texture = ExtResource("26_k3r3y")
[node name="FieldsFlower016" type="Sprite2D" parent="Scenery2D"]
@ -285,11 +285,11 @@ position = Vector2(-891, -833)
texture = ExtResource("13_vk8a1")
[node name="FieldsBush024" type="Sprite2D" parent="Scenery2D"]
position = Vector2(-615, -737)
position = Vector2(-644, -833)
texture = ExtResource("10_y6sb7")
[node name="FieldsBush025" type="Sprite2D" parent="Scenery2D"]
position = Vector2(-648, -490)
position = Vector2(-676, -409)
texture = ExtResource("11_akah2")
[node name="FieldsBush026" type="Sprite2D" parent="Scenery2D"]
@ -433,11 +433,11 @@ position = Vector2(537, -1036)
texture = ExtResource("21_ioerh")
[node name="FieldsFlower021" type="Sprite2D" parent="Scenery2D"]
position = Vector2(769, -1056)
position = Vector2(761, -1085)
texture = ExtResource("27_350em")
[node name="FieldsFlower022" type="Sprite2D" parent="Scenery2D"]
position = Vector2(309, -1003)
position = Vector2(298, -1026)
texture = ExtResource("16_1pu0v")
[node name="FieldsFlower023" type="Sprite2D" parent="Scenery2D"]
@ -445,7 +445,7 @@ position = Vector2(462, -1092)
texture = ExtResource("18_g1h7o")
[node name="FieldsFlower024" type="Sprite2D" parent="Scenery2D"]
position = Vector2(65, -985)
position = Vector2(70, -1027)
texture = ExtResource("19_wyrhu")
[node name="FieldsFlower025" type="Sprite2D" parent="Scenery2D"]

View file

@ -80,7 +80,6 @@ func smoothLine(points:PackedVector2Array) -> PackedVector2Array:
return newpoints
func smoothSegment(pointarray:PackedVector2Array,plast,panchor,pnext,r,minr,maxsmoothangle):
print("Smooth segment r"+str(r))
var dirlast=(plast-panchor).normalized()
var lenlast=(plast-panchor).length()
var dirnext=(pnext-panchor).normalized()
@ -88,7 +87,6 @@ func smoothSegment(pointarray:PackedVector2Array,plast,panchor,pnext,r,minr,maxs
if dirlast.dot(dirnext)<cos(deg_to_rad(maxsmoothangle)):
print(" Stopped. dot="+str(dirlast.dot(dirnext))+"<"+str(cos(deg_to_rad(maxsmoothangle))))
pointarray.append(panchor)
return
@ -96,7 +94,6 @@ func smoothSegment(pointarray:PackedVector2Array,plast,panchor,pnext,r,minr,maxs
var rnext=min(r,lennext/3.0)
if r<=minr:
print(" Stopped. r="+str(r))
pointarray.append(panchor)
return