Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Role0001.tscn
@小李xl 小李xl on 3 Dec 2023 2 KB 修复武器中心点问题
  1. [gd_scene load_steps=9 format=3 uid="uid://cxhrcytrx0kcf"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://cyrcv2jdgr8cf" path="res://prefab/role/template/RoleTemplate.tscn" id="1_10c2n"]
  4. [ext_resource type="Script" path="res://src/game/activity/role/player/Player.cs" id="2_6xwnt"]
  5. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="3_rk4gg"]
  6. [ext_resource type="Texture2D" uid="uid://dn58ax3t6rf4x" path="res://resource/sprite/role/common/Role_shadow1.png" id="3_vx7tr"]
  7. [ext_resource type="SpriteFrames" uid="uid://n11thtali6es" path="res://resource/spriteFrames/role/Role0001.tres" id="4_galcc"]
  8.  
  9. [sub_resource type="ShaderMaterial" id="ShaderMaterial_8hgu2"]
  10. resource_local_to_scene = true
  11. shader = ExtResource("3_rk4gg")
  12. shader_parameter/blend = Color(1, 1, 1, 1)
  13. shader_parameter/schedule = 0.0
  14. shader_parameter/modulate = Color(1, 1, 1, 1)
  15. shader_parameter/show_outline = true
  16. shader_parameter/outline_color = Color(0, 0, 0, 1)
  17. shader_parameter/outline_rainbow = false
  18. shader_parameter/outline_use_blend = true
  19. shader_parameter/grey = 0.0
  20.  
  21. [sub_resource type="RectangleShape2D" id="RectangleShape2D_ve262"]
  22. size = Vector2(12, 18)
  23.  
  24. [sub_resource type="AnimationLibrary" id="AnimationLibrary_ka171"]
  25.  
  26. [node name="Role0001" node_paths=PackedStringArray("HurtArea", "HurtCollision", "InteractiveArea", "InteractiveCollision", "TipRoot", "TipSprite", "AnimationPlayer", "MountPoint", "BackMountPoint", "MeleeAttackArea", "MeleeAttackCollision", "ShadowSprite", "AnimatedSprite", "Collision") instance=ExtResource("1_10c2n")]
  27. collision_layer = 8
  28. script = ExtResource("2_6xwnt")
  29. HurtArea = NodePath("HurtArea")
  30. HurtCollision = NodePath("HurtArea/HurtCollision")
  31. InteractiveArea = NodePath("InteractiveArea")
  32. InteractiveCollision = NodePath("InteractiveArea/InteractiveCollision")
  33. TipRoot = NodePath("TipRoot")
  34. TipSprite = NodePath("TipRoot/TipSprite")
  35. AnimationPlayer = NodePath("AnimationPlayer")
  36. MountPoint = NodePath("MountPoint")
  37. BackMountPoint = NodePath("BackMountPoint")
  38. MeleeAttackArea = NodePath("MountPoint/MeleeAttackArea")
  39. MeleeAttackCollision = NodePath("MountPoint/MeleeAttackArea/MeleeAttackCollision")
  40. ShadowSprite = NodePath("ShadowSprite")
  41. AnimatedSprite = NodePath("AnimatedSprite")
  42. Collision = NodePath("Collision")
  43.  
  44. [node name="ShadowSprite" parent="." index="0"]
  45. texture = ExtResource("3_vx7tr")
  46.  
  47. [node name="AnimatedSprite" parent="." index="2"]
  48. material = SubResource("ShaderMaterial_8hgu2")
  49. sprite_frames = ExtResource("4_galcc")
  50. animation = &"roll"
  51.  
  52. [node name="HurtCollision" parent="HurtArea" index="0"]
  53. shape = SubResource("RectangleShape2D_ve262")
  54.  
  55. [node name="InteractiveArea" parent="." index="5"]
  56. visible = true
  57.  
  58. [node name="AnimationPlayer" parent="." index="8"]
  59. libraries = {
  60. "": SubResource("AnimationLibrary_ka171")
  61. }