Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / weapon / bullet / OrdinaryBullets.tscn
@小李xl 小李xl on 24 Aug 2022 607 bytes 架构调整
  1. [gd_scene load_steps=4 format=2]
  2.  
  3. [ext_resource path="res://src/game/props/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.  
  8. [node name="OrdinaryBullets" type="Node2D"]
  9. script = ExtResource( 1 )
  10. Hit = ExtResource( 3 )
  11.  
  12. [node name="RayCast2D" type="RayCast2D" parent="."]
  13. enabled = true
  14. cast_to = Vector2( 18, 0 )
  15.  
  16. [node name="Bullet" type="Sprite" parent="."]
  17. position = Vector2( 0.5, 0 )
  18. texture = ExtResource( 2 )
  19. offset = Vector2( -7.5, 0 )