Newer
Older
DungeonShooting / prefab / Gun.tscn
@小李xl 小李xl on 20 May 2022 942 bytes 枪械的各种属性
  1. [gd_scene load_steps=4 format=2]
  2.  
  3. [ext_resource path="res://resource/sprite/gun/gun1.png" type="Texture" id=1]
  4. [ext_resource path="res://src/weapon/gun/Gun.cs" type="Script" id=2]
  5.  
  6. [sub_resource type="RectangleShape2D" id=1]
  7. extents = Vector2( 9.5, 3.5 )
  8.  
  9. [node name="Gun" type="Node2D"]
  10. script = ExtResource( 2 )
  11.  
  12. [node name="Sprite" type="Sprite" parent="."]
  13. position = Vector2( 1.49012e-08, -1.49012e-08 )
  14. scale = Vector2( 0.8, 0.8 )
  15. texture = ExtResource( 1 )
  16. offset = Vector2( 4, -3 )
  17.  
  18. [node name="OriginPoint" type="Position2D" parent="."]
  19. position = Vector2( 0, -1.5 )
  20. scale = Vector2( 0.8, 0.8 )
  21.  
  22. [node name="FirePoint" type="Position2D" parent="."]
  23. position = Vector2( 11, -1.5 )
  24. scale = Vector2( 0.8, 0.8 )
  25.  
  26. [node name="Area" type="Area2D" parent="."]
  27. collision_layer = 4
  28. collision_mask = 0
  29.  
  30. [node name="Collision" type="CollisionShape2D" parent="Area"]
  31. position = Vector2( 4.2, -0.199999 )
  32. shape = SubResource( 1 )
  33. disabled = true