[gd_scene load_steps=18 format=3 uid="uid://g3ocaiur6ojd"] [ext_resource type="Script" uid="uid://b2chtre60m62g" path="res://Script/base.gd" id="1_iwpok"] [ext_resource type="PackedScene" uid="uid://mcavsjo6dgd0" path="res://Scene/player.tscn" id="3_x5x41"] [ext_resource type="PackedScene" uid="uid://bk2nxxt5jfmhw" path="res://Scene/visto.tscn" id="4_pntdf"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_g5ejs"] sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) [sub_resource type="Sky" id="Sky_rpg24"] sky_material = SubResource("ProceduralSkyMaterial_g5ejs") [sub_resource type="Environment" id="Environment_3vi8l"] background_mode = 2 sky = SubResource("Sky_rpg24") tonemap_mode = 2 glow_enabled = true [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8rhti"] albedo_color = Color(0.513305, 0.726962, 0.328452, 1) [sub_resource type="PlaneMesh" id="PlaneMesh_g5ejs"] size = Vector2(20, 20) [sub_resource type="BoxShape3D" id="BoxShape3D_rpg24"] size = Vector3(20, 0, 20) [sub_resource type="PlaneMesh" id="PlaneMesh_ohhpf"] size = Vector2(40, 40) [sub_resource type="GDScript" id="GDScript_0ce0i"] script/source = "extends MeshInstance3D # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: pass " [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8rhti"] data = PackedVector3Array(20, 0, 20, -20, 0, 20, 20, 0, -20, -20, 0, 20, -20, 0, -20, 20, 0, -20) [sub_resource type="BoxMesh" id="BoxMesh_3vi8l"] [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_3vi8l"] points = PackedVector3Array(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ohhpf"] albedo_color = Color(0.958686, 0.172163, 5.77569e-07, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_21bcp"] albedo_color = Color(0.178295, 0.644373, 0.775982, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tpea4"] albedo_color = Color(0.725661, 0.571458, 0.0828246, 1) [node name="Node3D" type="Node3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0392878, 5.60284e-05, 0.0819645) script = ExtResource("1_iwpok") [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_3vi8l") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(-0.982935, -0.149758, 0.106821, 0, 0.580703, 0.814116, -0.183951, 0.800223, -0.570793, 0, 0, 0) shadow_enabled = true [node name="terra" type="MeshInstance3D" parent="."] transform = Transform3D(1.91805, 0, 0, 0, 1, 0, 0, 0, 1.94726, -0.131999, -0.0807834, 0.0995938) material_override = SubResource("StandardMaterial3D_8rhti") mesh = SubResource("PlaneMesh_g5ejs") metadata/_edit_group_ = true [node name="StaticBody3D" type="StaticBody3D" parent="terra"] metadata/_edit_group_ = true [node name="CollisionShape3D" type="CollisionShape3D" parent="terra/StaticBody3D"] shape = SubResource("BoxShape3D_rpg24") metadata/_edit_group_ = true [node name="death" type="MeshInstance3D" parent="."] transform = Transform3D(16.3, 0, 0, 0, 1, 0, 0, 0, 12.6, -0.0227752, -9.59846, -0.0194728) visible = false mesh = SubResource("PlaneMesh_ohhpf") script = SubResource("GDScript_0ce0i") [node name="Area3D" type="Area3D" parent="death"] [node name="CollisionShape3D" type="CollisionShape3D" parent="death/Area3D"] shape = SubResource("ConcavePolygonShape3D_8rhti") [node name="Player" parent="." instance=ExtResource("3_x5x41")] transform = Transform3D(0.999995, 0.00271548, -0.00172492, -0.00271622, 0.999996, -0.0004321, 0.00172375, 0.000436761, 0.999999, 0, 1, 0) [node name="Wall" type="MeshInstance3D" parent="."] transform = Transform3D(39.6553, 0, 0, 0, 5.08344, 0, 0, 0, 1.08613, 0.0282918, 0.14087, 19.0978) mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Wall"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Wall/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Wall2" type="MeshInstance3D" parent="."] transform = Transform3D(39.6553, 0, 0, 0, 5.08344, 0, 0, 0, 1.08613, 0.028, 0.141, -19.098) mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Wall2"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Wall2/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Wall3" type="MeshInstance3D" parent="."] transform = Transform3D(-1.73339e-06, 0, -1.08613, 0, 5.08344, 0, 39.6553, 0, -4.74763e-08, 19.098, 0.141, 0) mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Wall3"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Wall3/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Wall4" type="MeshInstance3D" parent="."] transform = Transform3D(-1.73339e-06, 0, -1.08613, 0, 5.08344, 0, 39.6553, 0, -4.74763e-08, -19.098, 0.141, 0) mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Wall4"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Wall4/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Cubo_red" type="MeshInstance3D" parent="."] transform = Transform3D(2.9, 0, 0, 0, 1, 0, 0, 0, 3.2, -5.31345, 0.14087, 12.8216) material_override = SubResource("StandardMaterial3D_ohhpf") mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Cubo_red"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Cubo_red/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Cubo_blu2" type="MeshInstance3D" parent="."] transform = Transform3D(4.05226, 0, 0, 0, 4.47332, 0, 0, 0, 0.617615, 0.154456, 2.06792, -5.93461) material_override = SubResource("StandardMaterial3D_21bcp") mesh = SubResource("BoxMesh_3vi8l") skeleton = NodePath("../Cubo_blu") [node name="StaticBody3D" type="StaticBody3D" parent="Cubo_blu2"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Cubo_blu2/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Cubo_blu" type="MeshInstance3D" parent="."] transform = Transform3D(2.9, 0, 0, 0, 1.5876, 0, 0, 0, 3.2, 0.0396042, 0.720582, 12.8395) material_override = SubResource("StandardMaterial3D_21bcp") mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Cubo_blu"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Cubo_blu/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="Cubo_yellow" type="MeshInstance3D" parent="."] transform = Transform3D(2.9, 0, 0, 0, 2.60258, 0, 0, 0, 3.2, 5.26495, 1.22977, 12.8216) material_override = SubResource("StandardMaterial3D_tpea4") mesh = SubResource("BoxMesh_3vi8l") [node name="StaticBody3D" type="StaticBody3D" parent="Cubo_yellow"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Cubo_yellow/StaticBody3D"] shape = SubResource("ConvexPolygonShape3D_3vi8l") [node name="focus" parent="." instance=ExtResource("4_pntdf")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.693508, 2.90325, 6.09433) [connection signal="body_entered" from="death/Area3D" to="." method="_on_area_3d_body_entered"] [connection signal="entrato" from="focus" to="Player" method="_on_visible_entrato"] [connection signal="uscito" from="focus" to="Player" method="_on_visible_uscito"]