Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / weapon / bullet / Bullet.tscn
@小李xl 小李xl on 10 May 2023 1 KB 添加敌人死亡特效
  1. [gd_scene load_steps=9 format=3]
  2.  
  3. [ext_resource type="Script" path="res://src/framework/activity/ActivityObjectTemplate.cs" id="1_nwypj"]
  4. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2"]
  5. [ext_resource type="Texture2D" uid="uid://bu0b11hiuecxy" path="res://resource/sprite/bullet/bullet.png" id="3"]
  6.  
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_5a4f2"]
  9. resource_local_to_scene = true
  10. shader = ExtResource("2")
  11. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  12. shader_parameter/schedule = 1
  13.  
  14. [sub_resource type="ShaderMaterial" id="ShaderMaterial_o0655"]
  15. resource_local_to_scene = true
  16. shader = ExtResource("2")
  17. shader_parameter/blend = Color(1, 1, 1, 1)
  18. shader_parameter/schedule = 0
  19.  
  20. [sub_resource type="SpriteFrames" id="SpriteFrames_5wvmf"]
  21. animations = [{
  22. "frames": [{
  23. "duration": 1.0,
  24. "texture": ExtResource("3")
  25. }],
  26. "loop": true,
  27. "name": &"default",
  28. "speed": 5.0
  29. }]
  30.  
  31. [sub_resource type="RectangleShape2D" id="RectangleShape2D_c0onq"]
  32. size = Vector2(44.72, 12)
  33.  
  34. [sub_resource type="RectangleShape2D" id="RectangleShape2D_lcqb8"]
  35. size = Vector2(11, 4)
  36.  
  37. [node name="Bullet" type="Node"]
  38. script = ExtResource("1_nwypj")
  39. collision_layer = 2
  40. collision_mask = 1
  41.  
  42. [node name="ShadowSprite" type="Sprite2D" parent="."]
  43. z_index = -1
  44. material = SubResource("ShaderMaterial_5a4f2")
  45.  
  46. [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
  47. modulate = Color(1.8, 1.8, 1.8, 1)
  48. material = SubResource("ShaderMaterial_o0655")
  49. sprite_frames = SubResource("SpriteFrames_5wvmf")
  50.  
  51. [node name="CollisionArea" type="Area2D" parent="."]
  52. visible = false
  53. collision_layer = 0
  54. collision_mask = 0
  55. monitorable = false
  56.  
  57. [node name="CollisionShape2D" type="CollisionShape2D" parent="CollisionArea"]
  58. position = Vector2(2.93353, 0)
  59. scale = Vector2(0.226586, 0.333333)
  60. shape = SubResource("RectangleShape2D_c0onq")
  61.  
  62. [node name="Collision" type="CollisionShape2D" parent="."]
  63. position = Vector2(2.5, 0)
  64. shape = SubResource("RectangleShape2D_lcqb8")