Newer
Older
DungeonShooting / prefab / weapon / bullet / OrdinaryBullets.tscn
@小李xl 小李xl on 9 Jun 2022 595 bytes 实现投抛物体
  1. [gd_scene load_steps=4 format=2]
  2.  
  3. [ext_resource path="res://src/weapon/bullet/OrdinaryBullets.cs" type="Script" id=1]
  4. [ext_resource path="res://resource/sprite/bullet/bullet.png" type="Texture" id=2]
  5. [ext_resource path="res://prefab/effect/Hit.tscn" type="PackedScene" id=3]
  6.  
  7. [node name="OrdinaryBullets" type="Node2D"]
  8. script = ExtResource( 1 )
  9. Hit = ExtResource( 3 )
  10.  
  11. [node name="RayCast2D" type="RayCast2D" parent="."]
  12. enabled = true
  13. cast_to = Vector2( 18, 0 )
  14.  
  15. [node name="Bullet" type="Sprite" parent="."]
  16. position = Vector2( 0.5, 0 )
  17. texture = ExtResource( 2 )
  18. offset = Vector2( -7.5, 0 )