Skip to content

Commit

Permalink
Merge pull request #98 from TheDuckCow/asset-lib-improvements
Browse files Browse the repository at this point in the history
Improved install experience from Godot Asset Library
  • Loading branch information
TheDuckCow authored Jun 17, 2023
2 parents 0c61d4c + 5cd326b commit e35a568
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
27 changes: 18 additions & 9 deletions demo.tscn → demo/demo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -32,17 +32,17 @@ 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")

[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")
Expand All @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand All @@ -81,55 +87,58 @@ 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")

[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")

Expand Down

0 comments on commit e35a568

Please sign in to comment.