wheat.tscn 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [gd_scene load_steps=7 format=3 uid="uid://ccsytlw2xbxan"]
  2. [ext_resource type="Texture2D" uid="uid://cankh6gqcfwh8" path="res://res/wheat.png" id="1_8mf82"]
  3. [ext_resource type="Script" path="res://scene/entity/wheat.gd" id="1_r6usw"]
  4. [ext_resource type="AudioStream" uid="uid://cymt7xlvjplx7" path="res://snd/sfx/coin.wav" id="3_pykee"]
  5. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="4_feb1a"]
  6. [sub_resource type="RectangleShape2D" id="RectangleShape2D_tt0m1"]
  7. size = Vector2(9, 152)
  8. [sub_resource type="RectangleShape2D" id="RectangleShape2D_0qtwq"]
  9. size = Vector2(693, 693)
  10. [node name="Wheat" type="RigidBody2D"]
  11. collision_layer = 0
  12. collision_mask = 4
  13. script = ExtResource("1_r6usw")
  14. [node name="Sprite2D" type="Sprite2D" parent="."]
  15. modulate = Color(0.670588, 0.380392, 0, 1)
  16. texture = ExtResource("1_8mf82")
  17. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  18. position = Vector2(-0.5, 0)
  19. shape = SubResource("RectangleShape2D_tt0m1")
  20. [node name="CaptureArea" type="Area2D" parent="."]
  21. [node name="CollisionShape2D" type="CollisionShape2D" parent="CaptureArea"]
  22. position = Vector2(-1.5, 7.5)
  23. shape = SubResource("RectangleShape2D_0qtwq")
  24. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  25. stream = ExtResource("3_pykee")
  26. volume_db = -6.0
  27. bus = &"SFX"
  28. script = ExtResource("4_feb1a")
  29. [connection signal="mouse_entered" from="CaptureArea" to="." method="_on_capture_area_mouse_entered"]