BulletBillCannon.tscn 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [gd_scene load_steps=11 format=3 uid="uid://bqhtste1il47d"]
  2. [ext_resource type="Script" uid="uid://0btfo4kjnnrg" path="res://Scripts/Parts/BulletBillCannon.gd" id="1_je07o"]
  3. [ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="2_vkq2x"]
  4. [ext_resource type="Texture2D" uid="uid://di0lgq3cojy41" path="res://Assets/Sprites/Editor/BillCannon.png" id="3_xxt5v"]
  5. [ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="4_guvwn"]
  6. [ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="5_84pyo"]
  7. [ext_resource type="Script" uid="uid://ctfbuoxtnnl0q" path="res://Scripts/Classes/Components/EditorPropertyExposer.gd" id="6_guvwn"]
  8. [sub_resource type="RectangleShape2D" id="RectangleShape2D_mi286"]
  9. size = Vector2(48, 48)
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_rc5av"]
  11. atlas = ExtResource("3_xxt5v")
  12. region = Rect2(16, 0, 16, 16)
  13. [sub_resource type="AtlasTexture" id="AtlasTexture_1ilyi"]
  14. atlas = ExtResource("3_xxt5v")
  15. region = Rect2(0, 0, 16, 16)
  16. [sub_resource type="Resource" id="Resource_0rden"]
  17. script = ExtResource("5_84pyo")
  18. Overworld = SubResource("AtlasTexture_1ilyi")
  19. Underground = SubResource("AtlasTexture_rc5av")
  20. Castle = SubResource("AtlasTexture_rc5av")
  21. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  22. [node name="BulletBillCannon" type="Node2D" groups=["Enemies"]]
  23. visibility_layer = 2
  24. script = ExtResource("1_je07o")
  25. [node name="PlayerDetect" type="Area2D" parent="."]
  26. [node name="Shape" type="CollisionShape2D" parent="PlayerDetect"]
  27. shape = SubResource("RectangleShape2D_mi286")
  28. [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
  29. [node name="Node2D" type="Node2D" parent="."]
  30. script = ExtResource("2_vkq2x")
  31. [node name="Sprite2D" type="Sprite2D" parent="Node2D"]
  32. texture = ExtResource("3_xxt5v")
  33. region_enabled = true
  34. region_rect = Rect2(0, 0, 16, 16)
  35. region_filter_clip_enabled = true
  36. [node name="ResourceSetter" type="Node" parent="Node2D/Sprite2D" node_paths=PackedStringArray("node_to_affect")]
  37. script = ExtResource("4_guvwn")
  38. node_to_affect = NodePath("..")
  39. property_name = "texture"
  40. themed_resource = SubResource("Resource_0rden")
  41. metadata/_custom_type_script = "uid://cq6f682453q6o"
  42. [node name="EditorPropertyExposer" type="Node" parent="."]
  43. script = ExtResource("6_guvwn")
  44. properties = Array[String](["item"])
  45. filters = Dictionary[String, String]({
  46. "item": "can_be_stored"
  47. })
  48. [node name="BlockCheck" type="Node2D" parent="."]
  49. [node name="RayCast2D" type="RayCast2D" parent="BlockCheck"]
  50. position = Vector2(9, 0)
  51. target_position = Vector2(8, 0)
  52. collision_mask = 6
  53. hit_from_inside = true