56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://d0s2abysa86rq"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b7gp0gqvkv8j4" path="res://sprites/MrBrick_base.png" id="1_jcisc"]
|
|
[ext_resource type="Texture2D" uid="uid://jl1gwqchhpdc" path="res://sprites/left_eye.png" id="2_8jrbi"]
|
|
[ext_resource type="Texture2D" uid="uid://iiawtnwmeny3" path="res://sprites/right_eye.png" id="3_k41y7"]
|
|
[ext_resource type="Texture2D" uid="uid://8h05rd26t66q" path="res://sprites/lollipop.png" id="4_vq1oq"]
|
|
[ext_resource type="Texture2D" uid="uid://dpbpjffbdbovp" path="res://sprites/cap.png" id="5_m7x6t"]
|
|
[ext_resource type="Script" uid="uid://pa1bwc4no08q" path="res://scripts/components/collectable.gd" id="5_wc3ym"]
|
|
[ext_resource type="Resource" uid="uid://b6apusc0jmi3x" path="res://resources/collectables/child.tres" id="6_vmvuo"]
|
|
[ext_resource type="AudioStream" uid="uid://drfr0wlgkhkdq" path="res://sfx/child_pickup.wav" id="7_j8eyh"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dj5g5"]
|
|
size = Vector2(10, 20)
|
|
|
|
[node name="Child" type="Area2D"]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_dj5g5")
|
|
|
|
[node name="Root" type="Node2D" parent="."]
|
|
|
|
[node name="Body" type="Node2D" parent="Root"]
|
|
|
|
[node name="Base" type="Sprite2D" parent="Root/Body"]
|
|
texture = ExtResource("1_jcisc")
|
|
|
|
[node name="Left Eye" type="Sprite2D" parent="Root/Body"]
|
|
position = Vector2(-7, -6)
|
|
texture = ExtResource("2_8jrbi")
|
|
hframes = 2
|
|
|
|
[node name="Right Eye" type="Sprite2D" parent="Root/Body"]
|
|
position = Vector2(6, -5)
|
|
texture = ExtResource("3_k41y7")
|
|
hframes = 2
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Root"]
|
|
position = Vector2(3, 1)
|
|
rotation = 0.785398
|
|
texture = ExtResource("4_vq1oq")
|
|
|
|
[node name="Cap" type="Sprite2D" parent="Root"]
|
|
position = Vector2(4, -18)
|
|
texture = ExtResource("5_m7x6t")
|
|
|
|
[node name="Collectable" type="Node" parent="." node_paths=PackedStringArray("area2d", "sfx")]
|
|
script = ExtResource("5_wc3ym")
|
|
area2d = NodePath("..")
|
|
collectable_data = ExtResource("6_vmvuo")
|
|
sfx = NodePath("../sfx_pickup")
|
|
|
|
[node name="sfx_pickup" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("7_j8eyh")
|