testo.tscn 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. [gd_scene load_steps=17 format=2]
  2. [ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=1]
  3. [ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=2]
  4. [ext_resource path="res://assets/Background/platform.png" type="Texture" id=3]
  5. [ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=5]
  7. [ext_resource path="res://assets/Player/AssetPLayerArrat2.png" type="Texture" id=6]
  8. [ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=7]
  9. [ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=8]
  10. [ext_resource path="res://scripts/Player.gd" type="Script" id=9]
  11. [ext_resource path="res://assets/Dummy/dummy.png" type="Texture" id=10]
  12. [sub_resource type="CircleShape2D" id=1]
  13. radius = 1.9338
  14. [sub_resource type="RectangleShape2D" id=2]
  15. extents = Vector2( 1.64005, 1.49425 )
  16. [sub_resource type="RectangleShape2D" id=3]
  17. extents = Vector2( 4.875, 1.99942 )
  18. [sub_resource type="RectangleShape2D" id=4]
  19. extents = Vector2( 19.6767, 23.7101 )
  20. [sub_resource type="SpriteFrames" id=5]
  21. animations = [ {
  22. "frames": [ ExtResource( 2 ), ExtResource( 4 ) ],
  23. "loop": true,
  24. "name": "Idle",
  25. "speed": 5.0
  26. }, {
  27. "frames": [ ExtResource( 1 ), ExtResource( 7 ), ExtResource( 8 ) ],
  28. "loop": true,
  29. "name": "SquatAction",
  30. "speed": 5.0
  31. }, {
  32. "frames": [ ExtResource( 6 ), ExtResource( 5 ) ],
  33. "loop": true,
  34. "name": "Walk",
  35. "speed": 4.0
  36. }, {
  37. "frames": [ ExtResource( 4 ) ],
  38. "loop": true,
  39. "name": "jump",
  40. "speed": 5.0
  41. }, {
  42. "frames": [ ExtResource( 1 ) ],
  43. "loop": true,
  44. "name": "SquatIdle",
  45. "speed": 5.0
  46. }, {
  47. "frames": [ ExtResource( 2 ) ],
  48. "loop": true,
  49. "name": "posible",
  50. "speed": 5.0
  51. } ]
  52. [sub_resource type="RectangleShape2D" id=6]
  53. extents = Vector2( 19.8385, 17.8619 )
  54. [node name="Node2D" type="Node2D"]
  55. position = Vector2( 86.0814, 66.7462 )
  56. scale = Vector2( 10, 10 )
  57. [node name="RigidBody2D" type="RigidBody2D" parent="."]
  58. position = Vector2( 81.4182, 6.56 )
  59. scale = Vector2( 0.876229, 0.876229 )
  60. mass = 0.754082
  61. [node name="dummy" type="Sprite" parent="RigidBody2D"]
  62. position = Vector2( 4.57764e-05, 3.8147e-06 )
  63. texture = ExtResource( 10 )
  64. [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
  65. position = Vector2( -1.96263, -1.84571 )
  66. scale = Vector2( 2.31913, 2.31913 )
  67. shape = SubResource( 1 )
  68. [node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D"]
  69. position = Vector2( -1.96265, 4.43642 )
  70. scale = Vector2( 2.31913, 2.31913 )
  71. shape = SubResource( 2 )
  72. [node name="platform" type="StaticBody2D" parent="."]
  73. position = Vector2( -132.57, 15.0826 )
  74. scale = Vector2( 4.312, 0.853 )
  75. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform"]
  76. position = Vector2( 33.8567, 19.8088 )
  77. shape = SubResource( 3 )
  78. one_way_collision = true
  79. [node name="platform" type="Sprite" parent="platform"]
  80. position = Vector2( 33.7712, 19.8005 )
  81. texture = ExtResource( 3 )
  82. [node name="Player" type="KinematicBody2D" parent="."]
  83. position = Vector2( -12.3278, 13.5178 )
  84. scale = Vector2( 0.080501, 0.080501 )
  85. script = ExtResource( 9 )
  86. [node name="Collision" type="CollisionShape2D" parent="Player"]
  87. position = Vector2( 101.15, 46.1497 )
  88. shape = SubResource( 4 )
  89. [node name="AnimatedSprite" type="AnimatedSprite" parent="Player"]
  90. position = Vector2( 94.3338, 43.5671 )
  91. scale = Vector2( 4.41596, 4.19006 )
  92. frames = SubResource( 5 )
  93. animation = "Idle"
  94. [node name="CollisionSit" type="CollisionShape2D" parent="Player"]
  95. position = Vector2( 100.997, 52.054 )
  96. shape = SubResource( 6 )
  97. disabled = true
  98. [node name="platform2" type="StaticBody2D" parent="."]
  99. position = Vector2( 17.5063, 31.8836 )
  100. scale = Vector2( 0.786, 0.561 )
  101. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform2"]
  102. position = Vector2( 33.8567, 19.8088 )
  103. shape = SubResource( 3 )
  104. one_way_collision = true
  105. [node name="platform" type="Sprite" parent="platform2"]
  106. position = Vector2( 33.7712, 19.8005 )
  107. texture = ExtResource( 3 )
  108. [node name="platform3" type="StaticBody2D" parent="."]
  109. position = Vector2( 36.9501, 20.9347 )
  110. scale = Vector2( 0.786, 0.561 )
  111. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform3"]
  112. position = Vector2( 33.8567, 19.8088 )
  113. shape = SubResource( 3 )
  114. one_way_collision = true
  115. [node name="platform" type="Sprite" parent="platform3"]
  116. position = Vector2( 33.7712, 19.8005 )
  117. texture = ExtResource( 3 )
  118. [node name="platform4" type="StaticBody2D" parent="."]
  119. position = Vector2( -116.912, 8.198 )
  120. scale = Vector2( 4.312, 0.853 )
  121. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform4"]
  122. position = Vector2( 33.8567, 19.8088 )
  123. shape = SubResource( 3 )
  124. one_way_collision = true
  125. [node name="platform" type="Sprite" parent="platform4"]
  126. position = Vector2( 33.7712, 19.8005 )
  127. texture = ExtResource( 3 )
  128. [node name="platform5" type="StaticBody2D" parent="."]
  129. position = Vector2( -152.212, 7.698 )
  130. scale = Vector2( 4.312, 0.853 )
  131. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform5"]
  132. position = Vector2( 39.8168, 50.9928 )
  133. shape = SubResource( 3 )
  134. one_way_collision = true
  135. [node name="platform" type="Sprite" parent="platform5"]
  136. position = Vector2( 39.7545, 50.9845 )
  137. texture = ExtResource( 3 )
  138. [node name="platform6" type="StaticBody2D" parent="."]
  139. position = Vector2( -109.112, 7.798 )
  140. scale = Vector2( 4.312, 0.853 )
  141. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform6"]
  142. position = Vector2( 39.8168, 50.9928 )
  143. shape = SubResource( 3 )
  144. one_way_collision = true
  145. [node name="platform" type="Sprite" parent="platform6"]
  146. position = Vector2( 39.7545, 50.9845 )
  147. texture = ExtResource( 3 )
  148. [node name="platform7" type="StaticBody2D" parent="."]
  149. position = Vector2( -118.001, -28.0773 )
  150. scale = Vector2( 4.312, 0.853 )
  151. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform7"]
  152. position = Vector2( 39.8168, 50.9928 )
  153. shape = SubResource( 3 )
  154. one_way_collision = true
  155. [node name="platform" type="Sprite" parent="platform7"]
  156. position = Vector2( 39.7545, 50.9845 )
  157. texture = ExtResource( 3 )
  158. [node name="platform8" type="StaticBody2D" parent="."]
  159. position = Vector2( -75.1416, -27.7598 )
  160. scale = Vector2( 4.312, 0.853 )
  161. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform8"]
  162. position = Vector2( 39.8168, 50.9928 )
  163. shape = SubResource( 3 )
  164. one_way_collision = true
  165. [node name="platform" type="Sprite" parent="platform8"]
  166. position = Vector2( 39.7545, 50.9845 )
  167. texture = ExtResource( 3 )
  168. [node name="platform9" type="StaticBody2D" parent="."]
  169. position = Vector2( -50.6512, 185.494 )
  170. rotation = -1.59248
  171. scale = Vector2( 4.312, 0.853 )
  172. [node name="CollisionShape2D" type="CollisionShape2D" parent="platform9"]
  173. position = Vector2( 39.8168, 50.9928 )
  174. shape = SubResource( 3 )
  175. one_way_collision = true
  176. [node name="platform" type="Sprite" parent="platform9"]
  177. position = Vector2( 39.7545, 50.9845 )
  178. texture = ExtResource( 3 )