Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Role.tscn
  1. [gd_scene load_steps=25 format=2]
  2.  
  3. [ext_resource path="res://resource/materlal/Blend.tres" type="Material" id=1]
  4. [ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectTemplate.cs" type="Script" id=2]
  5. [ext_resource path="res://resource/sprite/role/role1.png" type="Texture" id=3]
  6. [ext_resource path="res://src/game/role/MountRotation.cs" type="Script" id=4]
  7. [ext_resource path="res://resource/materlal/Blend.gdshader" type="Shader" id=5]
  8. [ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectReset.tres" type="Animation" id=6]
  9. [ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectHit.tres" type="Animation" id=7]
  10.  
  11. [sub_resource type="ShaderMaterial" id=33]
  12. resource_local_to_scene = true
  13. shader = ExtResource( 5 )
  14. shader_param/blend = Color( 1, 1, 1, 1 )
  15. shader_param/schedule = 0.0
  16.  
  17. [sub_resource type="AtlasTexture" id=17]
  18. atlas = ExtResource( 3 )
  19. region = Rect2( 0, 24, 16, 24 )
  20.  
  21. [sub_resource type="AtlasTexture" id=18]
  22. atlas = ExtResource( 3 )
  23. region = Rect2( 16, 24, 16, 24 )
  24.  
  25. [sub_resource type="AtlasTexture" id=19]
  26. atlas = ExtResource( 3 )
  27. region = Rect2( 32, 24, 16, 24 )
  28.  
  29. [sub_resource type="AtlasTexture" id=20]
  30. atlas = ExtResource( 3 )
  31. region = Rect2( 48, 24, 16, 24 )
  32.  
  33. [sub_resource type="AtlasTexture" id=25]
  34. atlas = ExtResource( 3 )
  35. region = Rect2( 48, 48, 16, 24 )
  36.  
  37. [sub_resource type="AtlasTexture" id=26]
  38. atlas = ExtResource( 3 )
  39. region = Rect2( 32, 48, 16, 24 )
  40.  
  41. [sub_resource type="AtlasTexture" id=27]
  42. atlas = ExtResource( 3 )
  43. region = Rect2( 16, 48, 16, 24 )
  44.  
  45. [sub_resource type="AtlasTexture" id=28]
  46. atlas = ExtResource( 3 )
  47. region = Rect2( 0, 48, 16, 24 )
  48.  
  49. [sub_resource type="AtlasTexture" id=21]
  50. atlas = ExtResource( 3 )
  51. region = Rect2( 0, 48, 16, 24 )
  52.  
  53. [sub_resource type="AtlasTexture" id=22]
  54. atlas = ExtResource( 3 )
  55. region = Rect2( 16, 48, 16, 24 )
  56.  
  57. [sub_resource type="AtlasTexture" id=23]
  58. atlas = ExtResource( 3 )
  59. region = Rect2( 32, 48, 16, 24 )
  60.  
  61. [sub_resource type="AtlasTexture" id=24]
  62. atlas = ExtResource( 3 )
  63. region = Rect2( 48, 48, 16, 24 )
  64.  
  65. [sub_resource type="SpriteFrames" id=6]
  66. animations = [ {
  67. "frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ],
  68. "loop": true,
  69. "name": "idle",
  70. "speed": 7.0
  71. }, {
  72. "frames": [ SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ) ],
  73. "loop": true,
  74. "name": "reverseRun",
  75. "speed": 10.0
  76. }, {
  77. "frames": [ SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ) ],
  78. "loop": true,
  79. "name": "run",
  80. "speed": 10.0
  81. } ]
  82.  
  83. [sub_resource type="CircleShape2D" id=34]
  84. radius = 4.0
  85.  
  86. [sub_resource type="RectangleShape2D" id=35]
  87. extents = Vector2( 5, 7.5 )
  88.  
  89. [sub_resource type="RectangleShape2D" id=16]
  90. extents = Vector2( 5, 8.25 )
  91.  
  92. [node name="Role" type="Node"]
  93. script = ExtResource( 2 )
  94. UseYSort = true
  95. CollisionMask = 1
  96.  
  97. [node name="ShadowSprite" type="Sprite" parent="."]
  98. material = ExtResource( 1 )
  99.  
  100. [node name="BackMountPoint" type="Position2D" parent="."]
  101. position = Vector2( 0, -10 )
  102.  
  103. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  104. material = SubResource( 33 )
  105. position = Vector2( 0, -12 )
  106. frames = SubResource( 6 )
  107. animation = "idle"
  108. frame = 3
  109. playing = true
  110.  
  111. [node name="Collision" type="CollisionShape2D" parent="."]
  112. visible = false
  113. position = Vector2( 0, -4 )
  114. shape = SubResource( 34 )
  115.  
  116. [node name="HurtArea" type="Area2D" parent="."]
  117. collision_layer = 0
  118. collision_mask = 0
  119. monitoring = false
  120.  
  121. [node name="CollisionShape2D" type="CollisionShape2D" parent="HurtArea"]
  122. position = Vector2( 0, -7.5 )
  123. shape = SubResource( 35 )
  124.  
  125. [node name="InteractiveArea" type="Area2D" parent="."]
  126. visible = false
  127. collision_layer = 0
  128. collision_mask = 4
  129. monitorable = false
  130.  
  131. [node name="Collision" type="CollisionShape2D" parent="InteractiveArea"]
  132. position = Vector2( 0, -5 )
  133. shape = SubResource( 16 )
  134.  
  135. [node name="MountPoint" type="Position2D" parent="."]
  136. position = Vector2( 2, -4 )
  137. script = ExtResource( 4 )
  138.  
  139. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  140. anims/RESET = ExtResource( 6 )
  141. anims/hit = ExtResource( 7 )