Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / weapon / bullet / HighSpeedBullet.tscn
@小李xl 小李xl on 27 Aug 2022 853 bytes 抽象出ThrowComponent组件
  1. [gd_scene load_steps=5 format=2]
  2.  
  3. [ext_resource path="res://src/game/item/weapon/bullet/HighSpeedBullet.cs" type="Script" id=1]
  4. [ext_resource path="res://prefab/effect/Hit.tscn" type="PackedScene" id=2]
  5.  
  6.  
  7. [sub_resource type="Curve" id=1]
  8. _data = [ Vector2( 0, 0.781588 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
  9.  
  10. [sub_resource type="Gradient" id=2]
  11. colors = PoolColorArray( 1, 1, 1, 0, 1, 1, 1, 0.705882 )
  12.  
  13. [node name="HighSpeedBullet" type="Node2D"]
  14. script = ExtResource( 1 )
  15. Hit = ExtResource( 2 )
  16.  
  17. [node name="Line" type="Line2D" parent="."]
  18. modulate = Color( 1, 0.937255, 0.843137, 1 )
  19. points = PoolVector2Array( 0, 0, 0, 10 )
  20. width = 1.0
  21. width_curve = SubResource( 1 )
  22. default_color = Color( 1, 1, 1, 1 )
  23. gradient = SubResource( 2 )
  24. begin_cap_mode = 2
  25. end_cap_mode = 2
  26.  
  27. [node name="RayCast2D" type="RayCast2D" parent="."]
  28. visible = false