aoe.tscn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [gd_scene load_steps=7 format=3 uid="uid://b7cuabx3ghe01"]
  2. [ext_resource type="Script" path="res://scene/entity/onion.gd" id="1_4vafg"]
  3. [ext_resource type="Texture2D" uid="uid://qtverddtembb" path="res://res/shallot.png" id="2_wk27u"]
  4. [ext_resource type="PackedScene" uid="uid://cbpm6nmfyr861" path="res://scene/entity/ri.tscn" id="3_3jjw5"]
  5. [ext_resource type="AudioStream" uid="uid://dti0unulgsf3o" path="res://snd/sfx/laserShoot.wav" id="4_ixbct"]
  6. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="5_ctkfa"]
  7. [sub_resource type="RectangleShape2D" id="RectangleShape2D_8s8kg"]
  8. size = Vector2(106.5, 108)
  9. [node name="Onion" type="CharacterBody2D"]
  10. collision_layer = 2
  11. collision_mask = 0
  12. script = ExtResource("1_4vafg")
  13. y_offset = -70.0
  14. height = 50.0
  15. grow_time = 3.0
  16. max_hp = 65.0
  17. cost = 65
  18. attack_rate = 3.0
  19. attack_range = 2000.0
  20. attack_damage = 27.0
  21. [node name="Body" type="Sprite2D" parent="."]
  22. texture = ExtResource("2_wk27u")
  23. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  24. position = Vector2(5, 10)
  25. shape = SubResource("RectangleShape2D_8s8kg")
  26. [node name="RI" parent="." instance=ExtResource("3_3jjw5")]
  27. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  28. stream = ExtResource("4_ixbct")
  29. volume_db = -6.0
  30. bus = &"SFX"
  31. script = ExtResource("5_ctkfa")