Add all files
This commit is contained in:
35
src/scripts/entities/world/chest.tscn
Normal file
35
src/scripts/entities/world/chest.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bptbhvomylpn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b2umirwiauk7p" path="res://assets/gfx/pickups/chest.png" id="1_08kib"]
|
||||
[ext_resource type="AudioStream" uid="uid://cyvxb4c5k75mn" path="res://assets/audio/sfx/player/pickup/item_collect_01.wav" id="2_5eugl"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3kvu5"]
|
||||
size = Vector2(16, 11)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_08kib"]
|
||||
size = Vector2(10, 1)
|
||||
|
||||
[node name="Chest" type="CharacterBody2D"]
|
||||
collision_layer = 128
|
||||
collision_mask = 64
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_08kib")
|
||||
hframes = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1.5)
|
||||
shape = SubResource("RectangleShape2D_3kvu5")
|
||||
|
||||
[node name="SfxOpen" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("2_5eugl")
|
||||
volume_db = -14.205
|
||||
|
||||
[node name="Area2DInteraction" type="Area2D" parent="."]
|
||||
collision_layer = 2048
|
||||
collision_mask = 512
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2DInteraction"]
|
||||
position = Vector2(0, 7.5)
|
||||
shape = SubResource("RectangleShape2D_08kib")
|
||||
debug_color = Color(0.7, 0.673001, 0.190349, 0.42)
|
||||
Reference in New Issue
Block a user