diff --git a/.gitattributes b/.gitattributes index c3d7367..88ff8a2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,22 @@ + +# LFS attributes icon.png filter=lfs diff=lfs merge=lfs -text *.afdesign filter=lfs diff=lfs merge=lfs -text +# Export ignores, so that these files are ignored when someone installs the +# plugin from the Godot Asset Library. You can test the changes by +# running: `git archive` +/.gitattributes export-ignore +/.github export-ignore +/.gitignore export-ignore +/.gutconfig.json export-ignore +/CONTRIBUTING.md export-ignore +/default_env.tres export-ignore +/demo/ export-ignore +/icon.png export-ignore +/icon.png.import export-ignore +/LICENSE export-ignore +/project.godot export-ignore +/README.md export-ignore +/release.sh export-ignore +/test/ export-ignore . !text !filter !merge !diff diff --git a/demo.gd b/demo/demo.gd similarity index 100% rename from demo.gd rename to demo/demo.gd diff --git a/demo.tscn b/demo/demo.tscn similarity index 95% rename from demo.tscn rename to demo/demo.tscn index b6bf299..ff08aff 100644 --- a/demo.tscn +++ b/demo/demo.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://addons/road-generator/road_point.gd" type="Script" id=1] [ext_resource path="res://addons/road-generator/road_network.gd" type="Script" id=2] [ext_resource path="res://addons/road-generator/road_texture.material" type="Material" id=3] -[ext_resource path="res://demo.gd" type="Script" id=4] +[ext_resource path="res://demo/demo.gd" type="Script" id=4] [sub_resource type="Curve3D" id=4] bake_interval = 0.75 @@ -32,8 +32,8 @@ segments = NodePath("segments") transform = Transform( 0.869185, 0, 0.494488, 0, 1, 0, -0.494488, 0, 0.869185, 1.00302, 1.05143, -44.2649 ) visible = false script = ExtResource( 1 ) -lanes = [ 5, 4, 2 ] traffic_dir = [ 2, 1, 1 ] +lanes = [ 5, 4, 2 ] lane_width = 8.0 gutter_profile = Vector2( 0.5, -1 ) next_pt_init = NodePath("../zero_point") @@ -41,8 +41,8 @@ next_pt_init = NodePath("../zero_point") [node name="zero_point" type="Spatial" parent="RoadNetwork/points"] transform = Transform( 0.99946, 0, -0.0328762, 0, 1, 0, 0.0328762, 0, 0.99946, 1.24632, -0.662588, -26.304 ) script = ExtResource( 1 ) -lanes = [ 5, 4, 2 ] traffic_dir = [ 2, 1, 1 ] +lanes = [ 5, 4, 2 ] lane_width = 8.0 gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../neg1_point") @@ -51,6 +51,8 @@ next_pt_init = NodePath("../first_point") [node name="first_point" type="Spatial" parent="RoadNetwork/points"] transform = Transform( 0.986726, 0, 0.162396, 0, 1, 0, -0.162396, 0, 0.986726, 1.598, 1.91547, -11.95 ) script = ExtResource( 1 ) +traffic_dir = [ 2, 2, 1, 1 ] +lanes = [ 2, 4, 4, 2 ] lane_width = 8.0 gutter_profile = Vector2( 1, -1 ) prior_pt_init = NodePath("../zero_point") @@ -61,6 +63,8 @@ next_mag = 20.1777 [node name="second_point" type="Spatial" parent="RoadNetwork/points"] transform = Transform( 0.957777, 0, 0.28751, 0, 1, 0, -0.28751, 0, 0.957777, -1.07604, -0.750719, 18.9381 ) script = ExtResource( 1 ) +traffic_dir = [ 2, 2, 1, 1 ] +lanes = [ 2, 4, 4, 2 ] lane_width = 3.0 gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../first_point") @@ -71,6 +75,8 @@ next_mag = 12.8194 [node name="third_point" type="Spatial" parent="RoadNetwork/points"] transform = Transform( 0.797647, 0, 0.603125, 0, 1, 0, -0.603125, 0, 0.797647, 19.2113, -2.51023, 41.4234 ) script = ExtResource( 1 ) +traffic_dir = [ 2, 2, 1, 1 ] +lanes = [ 2, 4, 4, 2 ] lane_width = 3.0 gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../second_point") @@ -81,6 +87,8 @@ prior_mag = 10.0 transform = Transform( -0.423789, 0, -0.905761, 0, 1, 0, 0.905761, 0, -0.423789, 50.1599, 0.730894, 39.8696 ) visible = false script = ExtResource( 1 ) +traffic_dir = [ 2, 2, 1, 1 ] +lanes = [ 2, 4, 4, 2 ] lane_width = 3.0 gutter_profile = Vector2( 0.5, -1 ) next_pt_init = NodePath("../third_point") @@ -88,48 +96,49 @@ next_pt_init = NodePath("../third_point") [node name="disc_1" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.944141, 0, -0.329542, 0, 1, 0, 0.329542, 0, -0.944141, 36.0962, 1.05143, -36.5026 ) script = ExtResource( 1 ) -lanes = [ 7, 0, 7 ] traffic_dir = [ 2, 1, 0 ] +lanes = [ 7, 0, 7 ] gutter_profile = Vector2( 0.5, -1 ) next_pt_init = NodePath("../disc_2") [node name="disc_2" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.957722, 0, 0.287695, 0, 1, 0, -0.287695, 0, -0.957722, 32.8482, 1.05143, -51.404 ) script = ExtResource( 1 ) -lanes = [ 7, 0, 7 ] traffic_dir = [ 2, 1, 0 ] +lanes = [ 7, 0, 7 ] gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../disc_1") [node name="disc_3" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.963482, 0, -0.267776, 0, 1, 0, 0.267776, 0, -0.963482, 62.9694, -0.150141, -34.5682 ) script = ExtResource( 1 ) -auto_lanes = false traffic_dir = [ 2, 2, 1, 1, 0 ] +auto_lanes = false +lanes = [ 2, 4, 4, 2 ] gutter_profile = Vector2( 0.5, -1 ) next_pt_init = NodePath("../disc_4") [node name="disc_4" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.989111, 0, -0.14717, 0, 1, 0, 0.14717, 0, -0.989111, 58.3664, 0.80562, -52.8625 ) script = ExtResource( 1 ) -lanes = [ 2, 4, 4, 3, 2 ] traffic_dir = [ 2, 2, 1, 1, 1 ] +lanes = [ 2, 4, 4, 3, 2 ] gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../disc_3") [node name="disc_5" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.963482, 0, -0.267776, 0, 1, 0, 0.267776, 0, -0.963482, 54.782, -0.542746, 14.9732 ) script = ExtResource( 1 ) -lanes = [ 2, 4, 4, 3, 2 ] traffic_dir = [ 2, 2, 1, 1, 1 ] +lanes = [ 2, 4, 4, 3, 2 ] gutter_profile = Vector2( 0.5, -1 ) next_pt_init = NodePath("../disc_6") [node name="disc_6" type="Spatial" parent="RoadNetwork/points"] transform = Transform( -0.989111, 0, -0.14717, 0, 1, 0, 0.14717, 0, -0.989111, 50.8614, 0.0695984, -3.32112 ) script = ExtResource( 1 ) -lanes = [ 2, 4, 4, 3, 2 ] traffic_dir = [ 2, 2, 1, 1, 1 ] +lanes = [ 2, 4, 4, 3, 2 ] gutter_profile = Vector2( 0.5, -1 ) prior_pt_init = NodePath("../disc_5")