Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Player.tscn
  1. [gd_scene load_steps=20 format=3 uid="uid://cp2uhtlb6h7k2"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://cyrcv2jdgr8cf" path="res://prefab/role/Role.tscn" id="1"]
  4. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_nvo1u"]
  5. [ext_resource type="Texture2D" uid="uid://bhwhhg2dfsr26" path="res://resource/sprite/role/role2.png" id="3_55mk2"]
  6.  
  7. [sub_resource type="ShaderMaterial" id="ShaderMaterial_vejn8"]
  8. resource_local_to_scene = true
  9. shader = ExtResource("2_nvo1u")
  10. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  11. shader_parameter/schedule = 1
  12.  
  13. [sub_resource type="ShaderMaterial" id="ShaderMaterial_0gb8j"]
  14. resource_local_to_scene = true
  15. shader = ExtResource("2_nvo1u")
  16. shader_parameter/blend = Color(1, 1, 1, 1)
  17. shader_parameter/schedule = 0
  18.  
  19. [sub_resource type="AtlasTexture" id="AtlasTexture_tmewn"]
  20. atlas = ExtResource("3_55mk2")
  21. region = Rect2(0, 0, 16, 24)
  22.  
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_dvg4a"]
  24. atlas = ExtResource("3_55mk2")
  25. region = Rect2(0, 24, 16, 24)
  26.  
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_kvuct"]
  28. atlas = ExtResource("3_55mk2")
  29. region = Rect2(16, 24, 16, 24)
  30.  
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_5op76"]
  32. atlas = ExtResource("3_55mk2")
  33. region = Rect2(32, 24, 16, 24)
  34.  
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_helyc"]
  36. atlas = ExtResource("3_55mk2")
  37. region = Rect2(48, 24, 16, 24)
  38.  
  39. [sub_resource type="AtlasTexture" id="AtlasTexture_67mn8"]
  40. atlas = ExtResource("3_55mk2")
  41. region = Rect2(48, 48, 16, 24)
  42.  
  43. [sub_resource type="AtlasTexture" id="AtlasTexture_jeywq"]
  44. atlas = ExtResource("3_55mk2")
  45. region = Rect2(32, 48, 16, 24)
  46.  
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_oycx8"]
  48. atlas = ExtResource("3_55mk2")
  49. region = Rect2(16, 48, 16, 24)
  50.  
  51. [sub_resource type="AtlasTexture" id="AtlasTexture_tjg1t"]
  52. atlas = ExtResource("3_55mk2")
  53. region = Rect2(0, 48, 16, 24)
  54.  
  55. [sub_resource type="AtlasTexture" id="AtlasTexture_2ltxw"]
  56. atlas = ExtResource("3_55mk2")
  57. region = Rect2(0, 48, 16, 24)
  58.  
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_x1va1"]
  60. atlas = ExtResource("3_55mk2")
  61. region = Rect2(16, 48, 16, 24)
  62.  
  63. [sub_resource type="AtlasTexture" id="AtlasTexture_ic2p5"]
  64. atlas = ExtResource("3_55mk2")
  65. region = Rect2(32, 48, 16, 24)
  66.  
  67. [sub_resource type="AtlasTexture" id="AtlasTexture_j3hdu"]
  68. atlas = ExtResource("3_55mk2")
  69. region = Rect2(48, 48, 16, 24)
  70.  
  71. [sub_resource type="SpriteFrames" id="SpriteFrames_3poqo"]
  72. animations = [{
  73. "frames": [{
  74. "duration": 1.0,
  75. "texture": SubResource("AtlasTexture_tmewn")
  76. }],
  77. "loop": true,
  78. "name": &"default",
  79. "speed": 5.0
  80. }, {
  81. "frames": [{
  82. "duration": 1.0,
  83. "texture": SubResource("AtlasTexture_dvg4a")
  84. }, {
  85. "duration": 1.0,
  86. "texture": SubResource("AtlasTexture_kvuct")
  87. }, {
  88. "duration": 1.0,
  89. "texture": SubResource("AtlasTexture_5op76")
  90. }, {
  91. "duration": 1.0,
  92. "texture": SubResource("AtlasTexture_helyc")
  93. }],
  94. "loop": true,
  95. "name": &"idle",
  96. "speed": 7.0
  97. }, {
  98. "frames": [{
  99. "duration": 1.0,
  100. "texture": SubResource("AtlasTexture_67mn8")
  101. }, {
  102. "duration": 1.0,
  103. "texture": SubResource("AtlasTexture_jeywq")
  104. }, {
  105. "duration": 1.0,
  106. "texture": SubResource("AtlasTexture_oycx8")
  107. }, {
  108. "duration": 1.0,
  109. "texture": SubResource("AtlasTexture_tjg1t")
  110. }],
  111. "loop": true,
  112. "name": &"reverseRun",
  113. "speed": 10.0
  114. }, {
  115. "frames": [{
  116. "duration": 1.0,
  117. "texture": SubResource("AtlasTexture_2ltxw")
  118. }, {
  119. "duration": 1.0,
  120. "texture": SubResource("AtlasTexture_x1va1")
  121. }, {
  122. "duration": 1.0,
  123. "texture": SubResource("AtlasTexture_ic2p5")
  124. }, {
  125. "duration": 1.0,
  126. "texture": SubResource("AtlasTexture_j3hdu")
  127. }],
  128. "loop": true,
  129. "name": &"run",
  130. "speed": 10.0
  131. }]
  132.  
  133. [node name="Player" instance=ExtResource("1")]
  134. collision_layer = 8
  135. collision_mask = 1
  136.  
  137. [node name="ShadowSprite" parent="." index="0"]
  138. material = SubResource("ShaderMaterial_vejn8")
  139.  
  140. [node name="AnimatedSprite" parent="." index="2"]
  141. material = SubResource("ShaderMaterial_0gb8j")
  142. sprite_frames = SubResource("SpriteFrames_3poqo")