carrot4.tscn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [gd_scene load_steps=9 format=3 uid="uid://bam5e7b0rnfnm"]
  2. [ext_resource type="Script" path="res://scene/entity/dragon.gd" id="1_b2xkh"]
  3. [ext_resource type="Texture2D" uid="uid://duevuku5wklwt" path="res://res/nothing.png" id="2_701be"]
  4. [ext_resource type="Script" path="res://scene/entity/carrot_gun.gd" id="3_tixck"]
  5. [ext_resource type="Texture2D" uid="uid://cx5md40xbjcwp" path="res://res/dragonfruit.png" id="4_sfyf4"]
  6. [ext_resource type="PackedScene" uid="uid://cbpm6nmfyr861" path="res://scene/entity/ri.tscn" id="5_5dxu3"]
  7. [ext_resource type="AudioStream" uid="uid://cpyaqxuec8i5k" path="res://snd/sfx/laserShoot(1).wav" id="6_6s2xr"]
  8. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="7_b6qiy"]
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_8s8kg"]
  10. size = Vector2(106.5, 108)
  11. [node name="Dragon" type="CharacterBody2D"]
  12. collision_layer = 2
  13. collision_mask = 0
  14. script = ExtResource("1_b2xkh")
  15. y_offset = -60.0
  16. cost = 30
  17. bullet_color = Color(0.490196, 0.0901961, 0.270588, 1)
  18. bullet_base_speed_u = 8000
  19. bullet_base_speed_l = 4000
  20. attack_range = 1100.0
  21. attack_damage = 7.0
  22. [node name="Gun" type="Sprite2D" parent="."]
  23. position = Vector2(-2, -49)
  24. texture = ExtResource("2_701be")
  25. centered = false
  26. script = ExtResource("3_tixck")
  27. [node name="Body" type="Sprite2D" parent="."]
  28. texture = ExtResource("4_sfyf4")
  29. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  30. position = Vector2(5, 10)
  31. shape = SubResource("RectangleShape2D_8s8kg")
  32. [node name="RI" parent="." instance=ExtResource("5_5dxu3")]
  33. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  34. stream = ExtResource("6_6s2xr")
  35. volume_db = -6.0
  36. bus = &"SFX"
  37. script = ExtResource("7_b6qiy")