Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / weapon / ShotFire.tscn
  1. [gd_scene load_steps=8 format=3 uid="uid://433h6huyctl1"]
  2.  
  3. [ext_resource type="Texture2D" uid="uid://b0jsyrbk4bydt" path="res://resource/sprite/effects/weapon/ShotFire.png" id="1_sencp"]
  4. [ext_resource type="Script" path="res://src/game/effects/AutoDestroySprite.cs" id="2_lnwju"]
  5.  
  6. [sub_resource type="AtlasTexture" id="AtlasTexture_asq5h"]
  7. atlas = ExtResource("1_sencp")
  8. region = Rect2(0, 0, 16, 16)
  9.  
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_n77w8"]
  11. atlas = ExtResource("1_sencp")
  12. region = Rect2(16, 0, 16, 16)
  13.  
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_10rnx"]
  15. atlas = ExtResource("1_sencp")
  16. region = Rect2(32, 0, 16, 16)
  17.  
  18. [sub_resource type="AtlasTexture" id="AtlasTexture_qi1pq"]
  19. atlas = ExtResource("1_sencp")
  20. region = Rect2(48, 0, 16, 16)
  21.  
  22. [sub_resource type="SpriteFrames" id="SpriteFrames_73j16"]
  23. animations = [{
  24. "frames": [{
  25. "duration": 1.0,
  26. "texture": SubResource("AtlasTexture_asq5h")
  27. }, {
  28. "duration": 1.0,
  29. "texture": SubResource("AtlasTexture_n77w8")
  30. }, {
  31. "duration": 1.0,
  32. "texture": SubResource("AtlasTexture_10rnx")
  33. }, {
  34. "duration": 1.0,
  35. "texture": SubResource("AtlasTexture_qi1pq")
  36. }],
  37. "loop": false,
  38. "name": &"default",
  39. "speed": 20.0
  40. }]
  41.  
  42. [node name="ShotFire" type="AnimatedSprite2D" node_paths=PackedStringArray("Particles2D")]
  43. modulate = Color(1.6, 1.6, 1.6, 1)
  44. sprite_frames = SubResource("SpriteFrames_73j16")
  45. autoplay = "default"
  46. offset = Vector2(8, 0)
  47. script = ExtResource("2_lnwju")
  48. DelayTime = 0.2
  49. Particles2D = []