mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 04:15:54 +00:00
Refactored switches and chests and mapping
This commit is contained in:
parent
295d32e66d
commit
cc5376e94e
14 changed files with 158 additions and 91 deletions
|
|
@ -1,9 +1,7 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://djf0y08ix66fn"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://djf0y08ix66fn"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Interactable.cs" id="1_4p5d3"]
|
||||
[ext_resource type="Script" path="res://Scripts/Chest.cs" id="1_cwpn7"]
|
||||
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="2_w7a1a"]
|
||||
[ext_resource type="Script" path="res://Scripts/Pickupper.cs" id="3_qro6k"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/LootItem.cs" id="4_rcd61"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ihal6"]
|
||||
radius = 16.0
|
||||
|
|
@ -76,16 +74,10 @@ animations = [{
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_isrvb"]
|
||||
size = Vector2(12, 10)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0qq1f"]
|
||||
script = ExtResource("4_rcd61")
|
||||
Item = 3
|
||||
Amount = 10
|
||||
|
||||
[node name="Chest" type="Area2D" node_paths=PackedStringArray("Target") groups=["Interactable"]]
|
||||
[node name="Chest" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_4p5d3")
|
||||
Target = NodePath("Pickupper")
|
||||
script = ExtResource("1_cwpn7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ihal6")
|
||||
|
|
@ -102,7 +94,3 @@ gravity_scale = 0.0
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_isrvb")
|
||||
|
||||
[node name="Pickupper" type="Node2D" parent="."]
|
||||
script = ExtResource("3_qro6k")
|
||||
LootTable = [SubResource("Resource_0qq1f")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue