carrot.tscn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [gd_scene load_steps=9 format=3 uid="uid://barkhw1dcvol6"]
  2. [ext_resource type="Script" path="res://scene/entity/carrot.gd" id="1_gju6g"]
  3. [ext_resource type="Texture2D" uid="uid://h6xbp2jjqyvs" path="res://res/carrot_gun.png" id="1_tdoyb"]
  4. [ext_resource type="Texture2D" uid="uid://bigfbiy262j6j" path="res://res/carrot_body_0.png" id="2_ptjqr"]
  5. [ext_resource type="Script" path="res://scene/entity/carrot_gun.gd" id="3_4132d"]
  6. [ext_resource type="PackedScene" uid="uid://cbpm6nmfyr861" path="res://scene/entity/ri.tscn" id="5_f2co1"]
  7. [ext_resource type="AudioStream" uid="uid://cpyaqxuec8i5k" path="res://snd/sfx/laserShoot(1).wav" id="6_6wdjm"]
  8. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="7_5wvmf"]
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_u7yc5"]
  10. size = Vector2(573.333, 1040)
  11. [node name="Carrot" type="CharacterBody2D"]
  12. scale = Vector2(0.3, 0.3)
  13. collision_layer = 2
  14. collision_mask = 0
  15. script = ExtResource("1_gju6g")
  16. y_offset = 75.0
  17. height = 300.0
  18. base_scale = 0.4
  19. max_hp = 60.0
  20. bullet_color = Color(0.878431, 0.160784, 0.478431, 1)
  21. attack_rate = 0.25
  22. attack_range = 1800.0
  23. attack_damage = 3.0
  24. [node name="Gun" type="Sprite2D" parent="."]
  25. position = Vector2(0, -430)
  26. texture = ExtResource("1_tdoyb")
  27. centered = false
  28. offset = Vector2(-200, -327)
  29. script = ExtResource("3_4132d")
  30. [node name="Body" type="Sprite2D" parent="."]
  31. texture = ExtResource("2_ptjqr")
  32. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  33. position = Vector2(-3.33335, -20)
  34. shape = SubResource("RectangleShape2D_u7yc5")
  35. [node name="RI" parent="." instance=ExtResource("5_f2co1")]
  36. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  37. stream = ExtResource("6_6wdjm")
  38. volume_db = -6.0
  39. bus = &"SFX"
  40. script = ExtResource("7_5wvmf")