From 7a88168cb42ea52a1804999e7b74aeda97041757 Mon Sep 17 00:00:00 2001 From: Dusk Date: Thu, 5 Mar 2026 16:12:11 +0100 Subject: [PATCH] feat: Add train to station --- icon.svg.import | 13 ++++++------ level.tscn | 2 +- station.tscn | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 7 deletions(-) diff --git a/icon.svg.import b/icon.svg.import index 9cfef87..f48615b 100644 --- a/icon.svg.import +++ b/icon.svg.import @@ -3,19 +3,20 @@ importer="texture" type="CompressedTexture2D" uid="uid://dwp08vjv8v6h6" -path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +path.s3tc="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex" metadata={ -"vram_texture": false +"imported_formats": ["s3tc_bptc"], +"vram_texture": true } [deps] source_file="res://icon.svg" -dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex"] [params] -compress/mode=0 +compress/mode=2 compress/high_quality=false compress/lossy_quality=0.7 compress/uastc_level=0 @@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0 compress/hdr_compression=1 compress/normal_map=0 compress/channel_pack=0 -mipmaps/generate=false +mipmaps/generate=true mipmaps/limit=-1 roughness/mode=0 roughness/src_normal="" @@ -37,7 +38,7 @@ process/normal_map_invert_y=false process/hdr_as_srgb=false process/hdr_clamp_exposure=false process/size_limit=0 -detect_3d/compress_to=1 +detect_3d/compress_to=0 svg/scale=1.0 editor/scale_with_editor_scale=false editor/convert_colors_with_editor_theme=false diff --git a/level.tscn b/level.tscn index 8632401..25dcb0e 100644 --- a/level.tscn +++ b/level.tscn @@ -18,7 +18,7 @@ environment = SubResource("Environment_vonw3") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8361101, 0) [node name="Camera3D" type="Camera3D" parent="." unique_id=2083164402] -transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 211.26556, 0) +transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 73.98364, 0) current = true fov = 55.0 script = ExtResource("2_vonw3") diff --git a/station.tscn b/station.tscn index a638eb2..846284d 100644 --- a/station.tscn +++ b/station.tscn @@ -2,6 +2,7 @@ [ext_resource type="Script" uid="uid://e3kpo73hvthu" path="res://station.gd" id="1_lu35c"] [ext_resource type="PackedScene" uid="uid://8227la7x8kn1" path="res://assets/3d/Rails.glb" id="2_xmj61"] +[ext_resource type="Texture2D" uid="uid://dwp08vjv8v6h6" path="res://icon.svg" id="3_sum1q"] [sub_resource type="PlaneMesh" id="PlaneMesh_kdh3y"] size = Vector2(150, 150) @@ -25,6 +26,22 @@ albedo_color = Color(1, 0.7764706, 0.41960785, 1) [sub_resource type="BoxMesh" id="BoxMesh_oblqs"] size = Vector3(10, 1, 100) +[sub_resource type="BoxMesh" id="BoxMesh_xmj61"] +size = Vector3(6, 6, 20) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_oblqs"] +albedo_color = Color(1, 0.536, 0.04000002, 1) + +[sub_resource type="PrismMesh" id="PrismMesh_k7ugr"] +left_to_right = 1.0 +size = Vector3(3, 6, 6) + +[sub_resource type="PlaneMesh" id="PlaneMesh_oblqs"] +size = Vector2(6, 2) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_k7ugr"] +albedo_texture = ExtResource("3_sum1q") + [node name="Station" type="Node3D" unique_id=1195945545] script = ExtResource("1_lu35c") @@ -155,3 +172,40 @@ mesh = SubResource("BoxMesh_oblqs") [node name="Platform4" type="MeshInstance3D" parent="." unique_id=686916110] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.74395, 0, -17.420876) mesh = SubResource("BoxMesh_oblqs") + +[node name="Train" type="Node3D" parent="." unique_id=522438055] + +[node name="Vago" type="MeshInstance3D" parent="Train" unique_id=1358069498] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 17.567303) +mesh = SubResource("BoxMesh_xmj61") +surface_material_override/0 = SubResource("StandardMaterial3D_oblqs") + +[node name="Cabina" type="MeshInstance3D" parent="Train" unique_id=1078253588] +transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 0, 4, 29.09083) +mesh = SubResource("PrismMesh_k7ugr") +surface_material_override/0 = SubResource("StandardMaterial3D_oblqs") + +[node name="Vago2" type="MeshInstance3D" parent="Train" unique_id=1531165930] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -3.0382385) +mesh = SubResource("BoxMesh_xmj61") +surface_material_override/0 = SubResource("StandardMaterial3D_oblqs") + +[node name="Vago3" type="MeshInstance3D" parent="Train" unique_id=1304668418] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -23.656246) +mesh = SubResource("BoxMesh_xmj61") +surface_material_override/0 = SubResource("StandardMaterial3D_oblqs") + +[node name="Cabina2" type="MeshInstance3D" parent="Train" unique_id=1982245798] +transform = Transform3D(-2.1855693e-07, 0, -1, 0, 1, 0, 1, 0, -2.1855693e-07, 0, 4, -35.070324) +mesh = SubResource("PrismMesh_k7ugr") +surface_material_override/0 = SubResource("StandardMaterial3D_oblqs") + +[node name="Logo" type="MeshInstance3D" parent="Train" unique_id=1901753724] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.259035, 26.030708) +mesh = SubResource("PlaneMesh_oblqs") +surface_material_override/0 = SubResource("StandardMaterial3D_k7ugr") + +[node name="Logo2" type="MeshInstance3D" parent="Train" unique_id=2031030233] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.259035, -31.657166) +mesh = SubResource("PlaneMesh_oblqs") +surface_material_override/0 = SubResource("StandardMaterial3D_k7ugr")