2024-04-15 04:07:49 +00:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://4d3ksr3171x4"]
|
2024-04-14 21:29:39 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://entities/imp.gd" id="1_dixpc"]
|
2024-04-15 04:07:49 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bxbjfev0lhwws" path="res://behaviours/sprite_left_right.tscn" id="2_eqcdi"]
|
2024-04-14 21:29:39 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_4528r"]
|
2024-04-15 04:07:49 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b7bdlh5akhi8s" path="res://behaviours/eat_target.tscn" id="3_iybf3"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://crhwsob76ieya" path="res://entities/imp_left.png" id="3_qda0k"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bubehid53q8h1" path="res://entities/imp_right.png" id="4_0sckn"]
|
|
|
|
[ext_resource type="PackedScene" path="res://behaviours/spawner.tscn" id="4_d8lgm"]
|
2024-04-15 00:45:18 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://uoxwjpmgg27a" path="res://entities/gold.tscn" id="5_yrfoq"]
|
2024-04-14 21:29:39 +00:00
|
|
|
|
2024-04-15 04:07:49 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ide4n"]
|
|
|
|
radius = 8.0
|
2024-04-14 21:29:39 +00:00
|
|
|
|
|
|
|
[node name="Imp" type="CharacterBody2D"]
|
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 14
|
|
|
|
script = ExtResource("1_dixpc")
|
|
|
|
|
2024-04-15 04:07:49 +00:00
|
|
|
[node name="Sprite" parent="." instance=ExtResource("2_eqcdi")]
|
|
|
|
scale = Vector2(2, 2)
|
|
|
|
texture = ExtResource("3_qda0k")
|
|
|
|
left_texture = ExtResource("3_qda0k")
|
|
|
|
right_texture = ExtResource("4_0sckn")
|
2024-04-14 21:29:39 +00:00
|
|
|
|
2024-04-15 04:07:49 +00:00
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
|
scale = Vector2(4, 4)
|
|
|
|
shape = SubResource("CircleShape2D_ide4n")
|
2024-04-14 21:29:39 +00:00
|
|
|
|
|
|
|
[node name="Draggable" parent="." instance=ExtResource("3_4528r")]
|
2024-04-15 04:07:49 +00:00
|
|
|
scale = Vector2(4, 4)
|
2024-04-14 21:29:39 +00:00
|
|
|
|
|
|
|
[node name="DragSound" type="AudioStreamPlayer2D" parent="Draggable"]
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
|
|
|
|
[node name="DropSound" type="AudioStreamPlayer2D" parent="Draggable"]
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
|
2024-04-15 00:45:18 +00:00
|
|
|
[node name="EatTarget" parent="." instance=ExtResource("3_iybf3")]
|
2024-04-15 04:07:49 +00:00
|
|
|
scale = Vector2(2, 2)
|
2024-04-14 21:29:39 +00:00
|
|
|
tag = &"Sheep"
|
|
|
|
|
2024-04-15 00:45:18 +00:00
|
|
|
[node name="SkullSpawner" parent="." instance=ExtResource("4_d8lgm")]
|
|
|
|
scene = ExtResource("5_yrfoq")
|
2024-04-14 21:29:39 +00:00
|
|
|
|
2024-04-15 00:45:18 +00:00
|
|
|
[connection signal="move" from="Draggable" to="." method="_on_draggable_move"]
|
|
|
|
[connection signal="eaten" from="EatTarget" to="." method="_on_eat_target_eaten"]
|
|
|
|
[connection signal="move" from="EatTarget" to="." method="_on_move"]
|