Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / weapon / shell / ShellCase.tscn
  1. [gd_scene load_steps=10 format=3]
  2.  
  3. [ext_resource type="Texture2D" uid="uid://dto03bc2qbhnj" path="res://resource/sprite/shell/shellCase.png" id="1"]
  4. [ext_resource type="Script" path="res://src/framework/activity/ActivityObjectTemplate.cs" id="1_nmhqm"]
  5. [ext_resource type="Shader" path="res://resource/materlal/Blend.gdshader" id="2"]
  6.  
  7.  
  8.  
  9. [sub_resource type="ShaderMaterial" id="ShaderMaterial_px12l"]
  10. resource_local_to_scene = true
  11. shader = ExtResource("2")
  12. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  13. shader_parameter/schedule = 1
  14.  
  15. [sub_resource type="ShaderMaterial" id="ShaderMaterial_7e6fo"]
  16. resource_local_to_scene = true
  17. shader = ExtResource("2")
  18. shader_parameter/blend = Color(1, 1, 1, 1)
  19. shader_parameter/schedule = 0
  20.  
  21. [sub_resource type="SpriteFrames" id="SpriteFrames_4huvy"]
  22. animations = [{
  23. "frames": [{
  24. "duration": 1.0,
  25. "texture": ExtResource("1")
  26. }],
  27. "loop": true,
  28. "name": &"default",
  29. "speed": 5.0
  30. }]
  31.  
  32. [sub_resource type="Animation" id="Animation_pfprw"]
  33. length = 0.001
  34. tracks/0/type = "value"
  35. tracks/0/imported = false
  36. tracks/0/enabled = true
  37. tracks/0/path = NodePath(".:visible")
  38. tracks/0/interp = 1
  39. tracks/0/loop_wrap = true
  40. tracks/0/keys = {
  41. "times": PackedFloat32Array(0),
  42. "transitions": PackedFloat32Array(1),
  43. "update": 1,
  44. "values": [true]
  45. }
  46.  
  47. [sub_resource type="Animation" id="Animation_kjsto"]
  48. resource_name = "flicker"
  49. tracks/0/type = "value"
  50. tracks/0/imported = false
  51. tracks/0/enabled = true
  52. tracks/0/path = NodePath(".:visible")
  53. tracks/0/interp = 1
  54. tracks/0/loop_wrap = true
  55. tracks/0/keys = {
  56. "times": PackedFloat32Array(0, 0.5, 0.6, 0.7, 0.8, 0.9, 1),
  57. "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
  58. "update": 1,
  59. "values": [true, true, false, true, false, true, false]
  60. }
  61. tracks/1/type = "method"
  62. tracks/1/imported = false
  63. tracks/1/enabled = true
  64. tracks/1/path = NodePath(".")
  65. tracks/1/interp = 1
  66. tracks/1/loop_wrap = true
  67. tracks/1/keys = {
  68. "times": PackedFloat32Array(1),
  69. "transitions": PackedFloat32Array(1),
  70. "values": [{
  71. "args": [],
  72. "method": &"queue_free"
  73. }]
  74. }
  75.  
  76. [sub_resource type="AnimationLibrary" id="AnimationLibrary_cpq4j"]
  77. _data = {
  78. "RESET": SubResource("Animation_pfprw"),
  79. "flicker": SubResource("Animation_kjsto")
  80. }
  81.  
  82. [node name="ShellCase" type="Node"]
  83. script = ExtResource("1_nmhqm")
  84.  
  85. [node name="ShadowSprite" type="Sprite2D" parent="."]
  86. z_index = -1
  87. material = SubResource("ShaderMaterial_px12l")
  88.  
  89. [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
  90. material = SubResource("ShaderMaterial_7e6fo")
  91. sprite_frames = SubResource("SpriteFrames_4huvy")
  92.  
  93. [node name="Collision" type="CollisionShape2D" parent="."]
  94.  
  95. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  96. libraries = {
  97. "": SubResource("AnimationLibrary_cpq4j")
  98. }