1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 23:54:23 +00:00
hella-farm/entities/gold.tscn

74 lines
3.3 KiB
Text
Raw Normal View History

2024-05-02 03:42:45 +00:00
[gd_scene load_steps=13 format=3 uid="uid://uoxwjpmgg27a"]
2024-04-13 17:07:26 +00:00
[ext_resource type="Script" path="res://entities/gold.gd" id="1_lbls1"]
2024-04-21 21:20:02 +00:00
[ext_resource type="PackedScene" uid="uid://dj72yshd25ucx" path="res://behaviours/collectible.tscn" id="2_j75yq"]
2024-04-15 04:21:36 +00:00
[ext_resource type="Texture2D" uid="uid://bfl0tkg85cvb8" path="res://entities/gold.png" id="2_tt3v6"]
2024-04-21 21:20:02 +00:00
[ext_resource type="PackedScene" uid="uid://cbg5kgwxusvxf" path="res://behaviours/cursor_detector.tscn" id="3_ne3sj"]
[ext_resource type="PackedScene" uid="uid://cml7rqvyfuagx" path="res://behaviours/move_towards.tscn" id="5_bcbgf"]
2024-05-02 03:42:45 +00:00
[ext_resource type="PackedScene" uid="uid://djcwis8ycrq85" path="res://behaviours/sampler_priority.tscn" id="5_h84r5"]
2024-04-16 01:20:02 +00:00
[ext_resource type="PackedScene" uid="uid://tx1qi6ahlxjp" path="res://behaviours/spawner.tscn" id="5_t7ey8"]
2024-04-15 04:21:36 +00:00
[ext_resource type="PackedScene" uid="uid://eqg6snsgn1kh" path="res://players/gold_pickup_player.tscn" id="6_eoeje"]
2024-05-02 03:42:45 +00:00
[ext_resource type="PackedScene" uid="uid://cm67ko1k6kn4u" path="res://behaviours/priority.tscn" id="7_5jbm6"]
[ext_resource type="PackedScene" uid="uid://dk1ipq7dhkhf3" path="res://behaviours/move_straight.tscn" id="8_a0co5"]
2024-04-13 17:07:26 +00:00
2024-04-21 21:20:02 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_w1h35"]
radius = 96.0
2024-04-21 21:20:02 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_jm7yp"]
2024-04-13 17:07:26 +00:00
[node name="Gold" type="Node2D"]
2024-04-29 01:20:27 +00:00
z_index = -5
y_sort_enabled = true
2024-04-13 17:07:26 +00:00
script = ExtResource("1_lbls1")
[node name="Collectible" parent="." instance=ExtResource("2_j75yq")]
unique_name_in_owner = true
2024-04-21 21:20:02 +00:00
kind = &"Gold"
2024-04-14 02:42:20 +00:00
[node name="Sprite" type="Sprite2D" parent="."]
2024-04-29 01:20:27 +00:00
y_sort_enabled = true
2024-04-15 04:21:36 +00:00
scale = Vector2(2, 2)
texture = ExtResource("2_tt3v6")
2024-04-13 17:07:26 +00:00
2024-04-21 21:20:02 +00:00
[node name="MagnetizeArea" parent="." instance=ExtResource("3_ne3sj")]
[node name="Shape" type="CollisionShape2D" parent="MagnetizeArea"]
2024-05-02 01:36:23 +00:00
z_index = -1
2024-04-21 21:20:02 +00:00
shape = SubResource("CircleShape2D_w1h35")
2024-05-02 01:36:23 +00:00
debug_color = Color(0, 1, 0.701961, 0.294118)
2024-04-21 21:20:02 +00:00
[node name="CollectArea" parent="." instance=ExtResource("3_ne3sj")]
[node name="Shape" type="CollisionShape2D" parent="CollectArea"]
2024-05-02 01:36:23 +00:00
z_index = -1
2024-04-21 21:20:02 +00:00
shape = SubResource("CircleShape2D_jm7yp")
2024-05-02 01:36:23 +00:00
debug_color = Color(0, 1, 0.701961, 0.294118)
2024-04-21 21:20:02 +00:00
2024-05-02 03:42:45 +00:00
[node name="SamplerPriority" parent="." instance=ExtResource("5_h84r5")]
[node name="MoveStraight" parent="." instance=ExtResource("8_a0co5")]
speed = 133.0
[node name="Priority" parent="MoveStraight" instance=ExtResource("7_5jbm6")]
alternative_priority = 5
2024-04-21 21:20:02 +00:00
[node name="MoveTowards" parent="." instance=ExtResource("5_bcbgf")]
unique_name_in_owner = true
2024-04-13 17:07:26 +00:00
2024-05-02 03:42:45 +00:00
[node name="Priority" parent="MoveTowards" instance=ExtResource("7_5jbm6")]
alternative_priority = 10
2024-04-21 21:20:02 +00:00
[node name="CollectSoundSpawner" parent="." instance=ExtResource("5_t7ey8")]
unique_name_in_owner = true
scale = Vector2(1.66667, 1.66667)
2024-04-15 04:21:36 +00:00
scene = ExtResource("6_eoeje")
2024-05-02 03:42:45 +00:00
[node name="DeleteIfNotOnScreen" type="VisibleOnScreenNotifier2D" parent="."]
2024-04-21 21:20:02 +00:00
[connection signal="cursor_entered" from="MagnetizeArea" to="." method="magnetize"]
[connection signal="cursor_entered" from="CollectArea" to="." method="collect" unbinds=1]
2024-05-02 03:42:45 +00:00
[connection signal="move" from="MoveStraight" to="." method="_on_move"]
[connection signal="changed_target" from="MoveTowards" to="MoveTowards/Priority" method="priority_conditional"]
2024-04-21 21:20:02 +00:00
[connection signal="move" from="MoveTowards" to="." method="_on_move"]
2024-05-02 03:42:45 +00:00
[connection signal="screen_exited" from="DeleteIfNotOnScreen" to="." method="queue_free"]