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