StormyExtraction/scenes/game/objects/object.tscn
2024-09-15 00:04:31 +02:00

46 lines
1.6 KiB
Text

[gd_scene load_steps=7 format=3 uid="uid://dxpd1pq7v6ing"]
[ext_resource type="Script" path="res://scenes/game/objects/object.gd" id="1_3y27f"]
[ext_resource type="Texture2D" uid="uid://c4h5dodgulduy" path="res://Assets/Icons/Pickup.png" id="2_pqvu2"]
[ext_resource type="Texture2D" uid="uid://83mf84k2pi3m" path="res://Assets/Shadow.png" id="3_hre65"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_n7gny"]
light_mode = 2
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_3q7s5"]
light_mode = 2
[sub_resource type="CircleShape2D" id="CircleShape2D_vvfu1"]
radius = 8.0
[node name="Object" type="Area2D" groups=["Object"]]
light_mask = 16
visibility_layer = 16
z_index = 1
material = SubResource("CanvasItemMaterial_n7gny")
collision_layer = 16
collision_mask = 96
script = ExtResource("1_3y27f")
[node name="Shadow" type="Sprite2D" parent="."]
material = SubResource("CanvasItemMaterial_3q7s5")
position = Vector2(2.38419e-07, 2.38419e-07)
scale = Vector2(0.5, 0.5)
texture = ExtResource("3_hre65")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -4)
shape = SubResource("CircleShape2D_vvfu1")
[node name="Sprite2D" type="Sprite2D" parent="."]
use_parent_material = true
position = Vector2(0, -4)
[node name="InteractIcon" type="Sprite2D" parent="."]
z_index = 5
position = Vector2(5.68434e-14, -16)
scale = Vector2(0.625, 0.625)
texture = ExtResource("2_pqvu2")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="area_exited" from="." to="." method="_on_area_exited"]