carrot2.tscn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [gd_scene load_steps=9 format=3 uid="uid://7xbagi7msusx"]
  2. [ext_resource type="Script" path="res://scene/entity/carrot.gd" id="1_hssk5"]
  3. [ext_resource type="Texture2D" uid="uid://h6xbp2jjqyvs" path="res://res/carrot_gun.png" id="2_olill"]
  4. [ext_resource type="Script" path="res://scene/entity/carrot_gun.gd" id="3_bcjtw"]
  5. [ext_resource type="Texture2D" uid="uid://cwl8co2omg20p" path="res://res/carrot_body_1.png" id="4_18hj0"]
  6. [ext_resource type="PackedScene" uid="uid://cbpm6nmfyr861" path="res://scene/entity/ri.tscn" id="5_fijcn"]
  7. [ext_resource type="AudioStream" uid="uid://cpyaqxuec8i5k" path="res://snd/sfx/laserShoot(1).wav" id="6_dfteh"]
  8. [ext_resource type="Script" path="res://scene/entity/pc.gd" id="7_qhdbr"]
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_8s8kg"]
  10. size = Vector2(463.333, 1000)
  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_hssk5")
  16. y_offset = 75.0
  17. height = 300.0
  18. grow_time = 2.0
  19. base_scale = 0.4
  20. max_hp = 200.0
  21. cost = 20
  22. bullet_color = Color(0.917647, 0.917647, 0.917647, 1)
  23. attack_rate = 0.25
  24. attack_range = 2500.0
  25. attack_damage = 4.0
  26. [node name="Gun" type="Sprite2D" parent="."]
  27. position = Vector2(0, -430)
  28. texture = ExtResource("2_olill")
  29. centered = false
  30. offset = Vector2(-200, -327)
  31. script = ExtResource("3_bcjtw")
  32. [node name="Body" type="Sprite2D" parent="."]
  33. texture = ExtResource("4_18hj0")
  34. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  35. position = Vector2(-5.00001, 0)
  36. shape = SubResource("RectangleShape2D_8s8kg")
  37. [node name="RI" parent="." instance=ExtResource("5_fijcn")]
  38. [node name="Coin" type="AudioStreamPlayer2D" parent="."]
  39. stream = ExtResource("6_dfteh")
  40. volume_db = -6.0
  41. bus = &"SFX"
  42. script = ExtResource("7_qhdbr")