Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Player.tscn
  1. [gd_scene load_steps=19 format=3 uid="uid://cdohv4xeirtuc"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://b515ti0qinck8" path="res://prefab/role/Role.tscn" id="1"]
  4. [ext_resource type="Shader" path="res://resource/materlal/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_dvg4a"]
  20. atlas = ExtResource("3_55mk2")
  21. region = Rect2(0, 24, 16, 24)
  22.  
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_kvuct"]
  24. atlas = ExtResource("3_55mk2")
  25. region = Rect2(16, 24, 16, 24)
  26.  
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_5op76"]
  28. atlas = ExtResource("3_55mk2")
  29. region = Rect2(32, 24, 16, 24)
  30.  
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_helyc"]
  32. atlas = ExtResource("3_55mk2")
  33. region = Rect2(48, 24, 16, 24)
  34.  
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_67mn8"]
  36. atlas = ExtResource("3_55mk2")
  37. region = Rect2(48, 48, 16, 24)
  38.  
  39. [sub_resource type="AtlasTexture" id="AtlasTexture_jeywq"]
  40. atlas = ExtResource("3_55mk2")
  41. region = Rect2(32, 48, 16, 24)
  42.  
  43. [sub_resource type="AtlasTexture" id="AtlasTexture_oycx8"]
  44. atlas = ExtResource("3_55mk2")
  45. region = Rect2(16, 48, 16, 24)
  46.  
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_tjg1t"]
  48. atlas = ExtResource("3_55mk2")
  49. region = Rect2(0, 48, 16, 24)
  50.  
  51. [sub_resource type="AtlasTexture" id="AtlasTexture_2ltxw"]
  52. atlas = ExtResource("3_55mk2")
  53. region = Rect2(0, 48, 16, 24)
  54.  
  55. [sub_resource type="AtlasTexture" id="AtlasTexture_x1va1"]
  56. atlas = ExtResource("3_55mk2")
  57. region = Rect2(16, 48, 16, 24)
  58.  
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_ic2p5"]
  60. atlas = ExtResource("3_55mk2")
  61. region = Rect2(32, 48, 16, 24)
  62.  
  63. [sub_resource type="AtlasTexture" id="AtlasTexture_j3hdu"]
  64. atlas = ExtResource("3_55mk2")
  65. region = Rect2(48, 48, 16, 24)
  66.  
  67. [sub_resource type="SpriteFrames" id="SpriteFrames_3poqo"]
  68. animations = [{
  69. "frames": [{
  70. "duration": 1.0,
  71. "texture": SubResource("AtlasTexture_dvg4a")
  72. }, {
  73. "duration": 1.0,
  74. "texture": SubResource("AtlasTexture_kvuct")
  75. }, {
  76. "duration": 1.0,
  77. "texture": SubResource("AtlasTexture_5op76")
  78. }, {
  79. "duration": 1.0,
  80. "texture": SubResource("AtlasTexture_helyc")
  81. }],
  82. "loop": true,
  83. "name": &"idle",
  84. "speed": 7.0
  85. }, {
  86. "frames": [{
  87. "duration": 1.0,
  88. "texture": SubResource("AtlasTexture_67mn8")
  89. }, {
  90. "duration": 1.0,
  91. "texture": SubResource("AtlasTexture_jeywq")
  92. }, {
  93. "duration": 1.0,
  94. "texture": SubResource("AtlasTexture_oycx8")
  95. }, {
  96. "duration": 1.0,
  97. "texture": SubResource("AtlasTexture_tjg1t")
  98. }],
  99. "loop": true,
  100. "name": &"reverseRun",
  101. "speed": 10.0
  102. }, {
  103. "frames": [{
  104. "duration": 1.0,
  105. "texture": SubResource("AtlasTexture_2ltxw")
  106. }, {
  107. "duration": 1.0,
  108. "texture": SubResource("AtlasTexture_x1va1")
  109. }, {
  110. "duration": 1.0,
  111. "texture": SubResource("AtlasTexture_ic2p5")
  112. }, {
  113. "duration": 1.0,
  114. "texture": SubResource("AtlasTexture_j3hdu")
  115. }],
  116. "loop": true,
  117. "name": &"run",
  118. "speed": 10.0
  119. }]
  120.  
  121. [node name="Player" instance=ExtResource("1")]
  122. collision_layer = 8
  123. collision_mask = 1
  124.  
  125. [node name="ShadowSprite" parent="." index="0"]
  126. material = SubResource("ShaderMaterial_vejn8")
  127.  
  128. [node name="AnimatedSprite" parent="." index="2"]
  129. material = SubResource("ShaderMaterial_0gb8j")
  130. sprite_frames = SubResource("SpriteFrames_3poqo")
  131. animation = &"idle"