testscene.tscn 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [gd_scene load_steps=13 format=3 uid="uid://dnnc0pdu3rvyh"]
  2. [ext_resource type="Script" path="res://reimu_movement.gd" id="1_cgk3l"]
  3. [ext_resource type="Texture2D" uid="uid://kmbyuo5g2l0q" path="res://Assets/player00/player00.png" id="2_kxu6v"]
  4. [sub_resource type="CircleShape2D" id="CircleShape2D_e8k53"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_ws6jr"]
  6. atlas = ExtResource("2_kxu6v")
  7. region = Rect2(0, 0, 32, 51)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_bwbvw"]
  9. atlas = ExtResource("2_kxu6v")
  10. region = Rect2(32, 0, 32, 51)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_vaknj"]
  12. atlas = ExtResource("2_kxu6v")
  13. region = Rect2(64, 0, 32, 51)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_c5giq"]
  15. atlas = ExtResource("2_kxu6v")
  16. region = Rect2(96, 0, 32, 51)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_u0lpw"]
  18. atlas = ExtResource("2_kxu6v")
  19. region = Rect2(128, 0, 32, 51)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_nh2ku"]
  21. atlas = ExtResource("2_kxu6v")
  22. region = Rect2(160, 0, 32, 51)
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_ok4fn"]
  24. atlas = ExtResource("2_kxu6v")
  25. region = Rect2(192, 0, 32, 51)
  26. [sub_resource type="AtlasTexture" id="AtlasTexture_5r4iv"]
  27. atlas = ExtResource("2_kxu6v")
  28. region = Rect2(224, 0, 32, 51)
  29. [sub_resource type="SpriteFrames" id="SpriteFrames_5x2dv"]
  30. animations = [{
  31. "frames": [{
  32. "duration": 1.0,
  33. "texture": SubResource("AtlasTexture_ws6jr")
  34. }, {
  35. "duration": 1.0,
  36. "texture": SubResource("AtlasTexture_bwbvw")
  37. }, {
  38. "duration": 1.0,
  39. "texture": SubResource("AtlasTexture_vaknj")
  40. }, {
  41. "duration": 1.0,
  42. "texture": SubResource("AtlasTexture_c5giq")
  43. }],
  44. "loop": true,
  45. "name": &"reimu",
  46. "speed": 10.0
  47. }, {
  48. "frames": [{
  49. "duration": 1.0,
  50. "texture": SubResource("AtlasTexture_u0lpw")
  51. }, {
  52. "duration": 1.0,
  53. "texture": SubResource("AtlasTexture_nh2ku")
  54. }, {
  55. "duration": 1.0,
  56. "texture": SubResource("AtlasTexture_ok4fn")
  57. }, {
  58. "duration": 1.0,
  59. "texture": SubResource("AtlasTexture_5r4iv")
  60. }],
  61. "loop": true,
  62. "name": &"yukari",
  63. "speed": 10.0
  64. }]
  65. [node name="Node2D" type="Node2D"]
  66. [node name="Camera2D" type="Camera2D" parent="."]
  67. offset = Vector2(100, 50)
  68. zoom = Vector2(4, 4)
  69. [node name="CharacterBody2D" type="CharacterBody2D" parent="."]
  70. position = Vector2(104, 55)
  71. script = ExtResource("1_cgk3l")
  72. [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
  73. shape = SubResource("CircleShape2D_e8k53")
  74. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
  75. sprite_frames = SubResource("SpriteFrames_5x2dv")
  76. animation = &"reimu"
  77. autoplay = "reimu"
  78. [node name="CharacterBody2D2" type="CharacterBody2D" parent="."]
  79. position = Vector2(152, 54)
  80. [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D2"]
  81. shape = SubResource("CircleShape2D_e8k53")
  82. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D2"]
  83. sprite_frames = SubResource("SpriteFrames_5x2dv")
  84. animation = &"yukari"
  85. autoplay = "yukari"
  86. frame_progress = 0.87452