added icons when near storage

This commit is contained in:
PfandBoss
2022-12-11 00:30:50 +01:00
parent 94ea63a8ac
commit 8eab12a0cd
13 changed files with 201 additions and 6 deletions

View File

@@ -1,13 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://cet80w4yr8rse"]
[gd_scene load_steps=6 format=3 uid="uid://cet80w4yr8rse"]
[ext_resource type="Script" path="res://scripts/Modules/Storage.gd" id="1_guwoh"]
[ext_resource type="Texture2D" uid="uid://cjc4wohtjb73j" path="res://Chest.png" id="2_a5kei"]
[ext_resource type="Texture2D" uid="uid://cet5o7wla1x7t" path="res://Assets/Textures/Opera_senza_titolo.png" id="3_ojyse"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_c1ipa"]
height = 3.60519
radius = 1.33696
[sub_resource type="CylinderShape3D" id="CylinderShape3D_orr2n"]
radius = 3.22778
[node name="Storage" type="StaticBody3D"]
collision_layer = 2
script = ExtResource("1_guwoh")
currentType = 0
@@ -20,3 +25,16 @@ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 2,
texture = ExtResource("2_a5kei")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
[node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("CylinderShape3D_orr2n")
[node name="Sprite3D2" type="Sprite3D" parent="."]
transform = Transform3D(0.15, 0, 0, 0, -6.55671e-09, 0.15, 0, -0.15, -6.55671e-09, 0, 3.10039, 0)
visible = false
texture = ExtResource("3_ojyse")
[connection signal="body_entered" from="Area3D" to="." method="on_Player_enter"]
[connection signal="body_exited" from="Area3D" to="." method="on_Player_exit"]