diff --git a/Root.tscn b/Root.tscn index 97c1c96..2215ffa 100644 --- a/Root.tscn +++ b/Root.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=28 format=3 uid="uid://4whij2hmts0t"] +[gd_scene load_steps=29 format=3 uid="uid://4whij2hmts0t"] [ext_resource type="Script" path="res://Player.gd" id="1_wt4gx"] [ext_resource type="Material" path="res://Unshaded.material" id="2_upp15"] @@ -12,11 +12,12 @@ [ext_resource type="Texture2D" uid="uid://ct6sngef76p35" path="res://addons/grass.png" id="9_i8cb1"] [ext_resource type="PackedScene" uid="uid://bxj354o6rycsf" path="res://obstacles/house_c.tscn" id="9_xyam4"] [ext_resource type="PackedScene" path="res://obstacles/dialog.tscn" id="10_6ihn6"] -[ext_resource type="PlaneMesh" path="res://road_mesh_something.tres" id="10_7jwjs"] +[ext_resource type="PlaneMesh" uid="uid://jy4q18wf2j41" path="res://road_mesh_something.tres" id="10_7jwjs"] [ext_resource type="PackedScene" path="res://obstacles/goal_billboard.tscn" id="14_0ikhl"] [ext_resource type="Script" path="res://Torretta.gd" id="15_058li"] [ext_resource type="PackedScene" path="res://models/vent.tscn" id="15_hwvsi"] [ext_resource type="PackedScene" uid="uid://t0gblqb4yr8m" path="res://models/turret.glb" id="16_upw73"] +[ext_resource type="PackedScene" uid="uid://mahsivqsy3oo" path="res://panchina.tscn" id="18_ijdrl"] [sub_resource type="Theme" id="Theme_hkcet"] Label/fonts/font = ExtResource("3_p3wyc") @@ -257,4 +258,6 @@ shape = SubResource("BoxShape3D_hwxik") [node name="RayCast3D" type="RayCast3D" parent="Torretta"] +[node name="Panchina" parent="." instance=ExtResource("18_ijdrl")] + [connection signal="timeout" from="UI/TextBox/Timer" to="UI/TextBox" method="_on_timer_timeout"] diff --git a/panchina.tscn b/panchina.tscn new file mode 100644 index 0000000..268a2bb --- /dev/null +++ b/panchina.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=3 format=3 uid="uid://mahsivqsy3oo"] + +[ext_resource type="PackedScene" uid="uid://ci3oqjm7d6n5c" path="res://models/veci.glb" id="1_5rsr2"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_5q6jj"] +size = Vector3(6.47207, 3.91496, 2.44863) + +[node name="Panchina" type="StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.9953, -1.41734, 0.942567) +collision_layer = 5 +collision_mask = 5 + +[node name="veci" parent="." instance=ExtResource("1_5rsr2")] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.91611, 2.53125, -0.454214) +shape = SubResource("BoxShape3D_5q6jj")