1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00
hella-farm/entities/skull.tscn

53 lines
2.4 KiB
Text

[gd_scene load_steps=9 format=3 uid="uid://b3gydtrenbw3n"]
[ext_resource type="Script" path="res://entities/skull.gd" id="1_7g8bu"]
[ext_resource type="Texture2D" uid="uid://dwvvwjdexdywh" path="res://entities/skull.png" id="1_v6qk3"]
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="2_h0icd"]
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="3_83m1a"]
[ext_resource type="AudioStream" uid="uid://dq3xf4i2wpt50" path="res://entities/skull_drag.wav" id="5_duqrf"]
[ext_resource type="AudioStream" uid="uid://buxgivpkh8dyl" path="res://entities/fall.wav" id="6_b7mxf"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ypibs"]
radius = 12.0
[sub_resource type="CircleShape2D" id="CircleShape2D_1c7gd"]
radius = 24.0
[node name="Skull" type="CharacterBody2D"]
collision_layer = 32
collision_mask = 38
script = ExtResource("1_7g8bu")
[node name="Sprite" type="Sprite2D" parent="."]
scale = Vector2(2, 2)
texture = ExtResource("1_v6qk3")
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ypibs")
[node name="MovementDrag" parent="." instance=ExtResource("3_83m1a")]
[node name="Draggable" parent="MovementDrag" instance=ExtResource("2_h0icd")]
collision_layer = 32
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
shape = SubResource("CircleShape2D_1c7gd")
debug_color = Color(1, 1, 1, 0)
[node name="DragSound" type="AudioStreamPlayer2D" parent="MovementDrag/Draggable"]
stream = ExtResource("5_duqrf")
[node name="FallTimer" type="Timer" parent="MovementDrag"]
wait_time = 0.5
one_shot = true
[node name="FallSound" type="AudioStreamPlayer2D" parent="MovementDrag/FallTimer"]
stream = ExtResource("6_b7mxf")
[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"]
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag/Draggable/DragSound" method="play" unbinds=1]
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"]
[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag/FallTimer/FallSound" method="play"]