Menu.tscn 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. [gd_scene load_steps=31 format=2]
  2. [ext_resource path="res://assets/GUI/Menu/vydelenie.png" type="Texture" id=1]
  3. [ext_resource path="res://assets/Background/lobby1.png" type="Texture" id=2]
  4. [ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=3]
  5. [ext_resource path="res://assets/Dummy/dummy.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=5]
  7. [ext_resource path="res://scripts/Lobby.gd" type="Script" id=6]
  8. [ext_resource path="res://scripts/Menu.gd" type="Script" id=7]
  9. [ext_resource path="res://scripts/AutoPlayer.gd" type="Script" id=8]
  10. [ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=9]
  11. [ext_resource path="res://assets/Background/lobby2.png" type="Texture" id=10]
  12. [ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=11]
  13. [ext_resource path="res://addons/transit/Transit.tscn" type="PackedScene" id=12]
  14. [ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=13]
  15. [ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=14]
  16. [ext_resource path="res://assets/Player/AssetPLayerArrat2.png" type="Texture" id=15]
  17. [ext_resource path="res://assets/GUI/transparent.png" type="Texture" id=16]
  18. [ext_resource path="res://assets/GUI/Menu/menu.png" type="Texture" id=17]
  19. [ext_resource path="res://scripts/Save.gd" type="Script" id=18]
  20. [sub_resource type="RectangleShape2D" id=1]
  21. extents = Vector2( 513.367, 12.0937 )
  22. [sub_resource type="SpriteFrames" id=2]
  23. animations = [ {
  24. "frames": [ ExtResource( 2 ), ExtResource( 10 ) ],
  25. "loop": true,
  26. "name": "idle",
  27. "speed": 1.0
  28. } ]
  29. [sub_resource type="RectangleShape2D" id=3]
  30. extents = Vector2( 522.186, 11.9596 )
  31. [sub_resource type="RectangleShape2D" id=4]
  32. extents = Vector2( 10, 233.152 )
  33. [sub_resource type="RectangleShape2D" id=5]
  34. extents = Vector2( 25.227, 3.39905 )
  35. [sub_resource type="RectangleShape2D" id=6]
  36. extents = Vector2( 24.1675, 1.89822 )
  37. [sub_resource type="SegmentShape2D" id=7]
  38. a = Vector2( -134.99, 118.447 )
  39. [sub_resource type="RectangleShape2D" id=8]
  40. extents = Vector2( 19.6767, 23.7101 )
  41. [sub_resource type="SpriteFrames" id=9]
  42. animations = [ {
  43. "frames": [ ExtResource( 5 ) ],
  44. "loop": true,
  45. "name": "posible",
  46. "speed": 5.0
  47. }, {
  48. "frames": [ ExtResource( 13 ) ],
  49. "loop": true,
  50. "name": "jump",
  51. "speed": 5.0
  52. }, {
  53. "frames": [ ExtResource( 14 ), ExtResource( 3 ), ExtResource( 11 ) ],
  54. "loop": true,
  55. "name": "SquatAction",
  56. "speed": 5.0
  57. }, {
  58. "frames": [ ExtResource( 5 ), ExtResource( 13 ) ],
  59. "loop": true,
  60. "name": "Idle",
  61. "speed": 5.0
  62. }, {
  63. "frames": [ ExtResource( 14 ) ],
  64. "loop": true,
  65. "name": "SquatIdle",
  66. "speed": 5.0
  67. }, {
  68. "frames": [ ExtResource( 15 ), ExtResource( 9 ) ],
  69. "loop": true,
  70. "name": "Walk",
  71. "speed": 4.0
  72. } ]
  73. [sub_resource type="RectangleShape2D" id=10]
  74. extents = Vector2( 19.8385, 19.4203 )
  75. [sub_resource type="Shader" id=11]
  76. code = "shader_type canvas_item;
  77. uniform float lod: hint_range(0.0, 5) = 1.0;
  78. void fragment(){
  79. vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
  80. COLOR = color;
  81. }"
  82. [sub_resource type="ShaderMaterial" id=12]
  83. shader = SubResource( 11 )
  84. shader_param/lod = 1.5
  85. [node name="Menu" type="Node2D"]
  86. position = Vector2( 0, -60.5811 )
  87. scale = Vector2( 1.9, 1.9 )
  88. script = ExtResource( 7 )
  89. [node name="Terrain" type="StaticBody2D" parent="."]
  90. position = Vector2( 12.8421, 368.357 )
  91. [node name="TerrainCollision" type="CollisionShape2D" parent="Terrain"]
  92. position = Vector2( 495.805, 53.6347 )
  93. shape = SubResource( 1 )
  94. [node name="lobby1" type="Sprite" parent="Terrain"]
  95. position = Vector2( 494.82, -72.5518 )
  96. scale = Vector2( 5.33135, 5.54181 )
  97. texture = ExtResource( 2 )
  98. script = ExtResource( 6 )
  99. [node name="AnimatedSprite" type="AnimatedSprite" parent="Terrain/lobby1"]
  100. position = Vector2( 0.151642, -0.225491 )
  101. frames = SubResource( 2 )
  102. animation = "idle"
  103. [node name="UpBorder" type="CollisionShape2D" parent="Terrain"]
  104. visible = false
  105. position = Vector2( 486.356, -386.304 )
  106. shape = SubResource( 3 )
  107. [node name="LeftBorder" type="CollisionShape2D" parent="Terrain"]
  108. visible = false
  109. position = Vector2( -11.4124, -163.588 )
  110. shape = SubResource( 4 )
  111. [node name="RightBorder" type="CollisionShape2D" parent="Terrain"]
  112. visible = false
  113. position = Vector2( 1008.78, -160.513 )
  114. shape = SubResource( 4 )
  115. [node name="FirstBorder" type="CollisionShape2D" parent="Terrain"]
  116. position = Vector2( 99.5895, -42.3785 )
  117. shape = SubResource( 5 )
  118. one_way_collision = true
  119. [node name="SecondBorder" type="CollisionShape2D" parent="Terrain"]
  120. position = Vector2( 169.514, -90.7393 )
  121. shape = SubResource( 6 )
  122. one_way_collision = true
  123. [node name="Hill" type="CollisionShape2D" parent="Terrain"]
  124. position = Vector2( 540.015, -75.6807 )
  125. shape = SubResource( 7 )
  126. one_way_collision = true
  127. [node name="dummy" type="Sprite" parent="."]
  128. position = Vector2( 890.086, 392.164 )
  129. scale = Vector2( 4.2964, 4.466 )
  130. texture = ExtResource( 4 )
  131. offset = Vector2( 0, -4.75143 )
  132. [node name="dummy2" type="Sprite" parent="dummy"]
  133. position = Vector2( -11.8195, -4.80079 )
  134. scale = Vector2( 1.01564, 0.977069 )
  135. texture = ExtResource( 4 )
  136. [node name="AutoPlayer" type="KinematicBody2D" parent="."]
  137. position = Vector2( -42.7076, 317.947 )
  138. script = ExtResource( 8 )
  139. [node name="Collision" type="CollisionShape2D" parent="AutoPlayer"]
  140. position = Vector2( 101.15, 46.1497 )
  141. shape = SubResource( 8 )
  142. [node name="AnimatedSprite" type="AnimatedSprite" parent="AutoPlayer"]
  143. position = Vector2( 94.3338, 43.5671 )
  144. scale = Vector2( 4.41596, 4.19006 )
  145. frames = SubResource( 9 )
  146. animation = "Idle"
  147. [node name="CollisionSit" type="CollisionShape2D" parent="AutoPlayer"]
  148. visible = false
  149. position = Vector2( 100.997, 50.2748 )
  150. shape = SubResource( 10 )
  151. disabled = true
  152. [node name="Delay" type="Timer" parent="AutoPlayer"]
  153. wait_time = 0.001
  154. autostart = true
  155. [node name="Timer" type="Timer" parent="AutoPlayer"]
  156. wait_time = 5.0
  157. autostart = true
  158. [node name="StayTime" type="Timer" parent="AutoPlayer"]
  159. wait_time = 7.0
  160. [node name="dummy2" type="Sprite" parent="."]
  161. position = Vector2( 789.828, 372.345 )
  162. scale = Vector2( 4.23422, 4.23422 )
  163. texture = ExtResource( 4 )
  164. [node name="Blur" type="Sprite" parent="."]
  165. material = SubResource( 12 )
  166. position = Vector2( 539.439, 270.44 )
  167. scale = Vector2( 8, 7 )
  168. texture = ExtResource( 16 )
  169. [node name="Camera2D" type="Camera2D" parent="."]
  170. position = Vector2( 511.432, 298.094 )
  171. current = true
  172. [node name="Transit" parent="." instance=ExtResource( 12 )]
  173. margin_left = 1.48862
  174. margin_top = 1.33894
  175. margin_right = 1.48862
  176. margin_bottom = 1.33894
  177. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  178. margin_left = 6.0
  179. margin_top = 14.0
  180. margin_right = 1017.0
  181. margin_bottom = 582.0
  182. alignment = 1
  183. __meta__ = {
  184. "_edit_use_anchors_": false
  185. }
  186. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  187. margin_top = 284.0
  188. margin_right = 1011.0
  189. margin_bottom = 284.0
  190. alignment = 1
  191. __meta__ = {
  192. "_edit_use_anchors_": false
  193. }
  194. [node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer"]
  195. margin_left = 505.0
  196. margin_right = 505.0
  197. [node name="menu" type="Sprite" parent="VBoxContainer/HBoxContainer/TextureRect"]
  198. position = Vector2( 13.464, -17.8619 )
  199. scale = Vector2( 3, 3 )
  200. texture = ExtResource( 17 )
  201. [node name="PlayButton" type="Button" parent="VBoxContainer/HBoxContainer/TextureRect"]
  202. margin_left = -53.0
  203. margin_top = -128.0
  204. margin_right = 79.0
  205. margin_bottom = -81.0
  206. focus_mode = 0
  207. enabled_focus_mode = 0
  208. flat = true
  209. __meta__ = {
  210. "_edit_use_anchors_": false
  211. }
  212. [node name="selected" type="Sprite" parent="VBoxContainer/HBoxContainer/TextureRect/PlayButton"]
  213. position = Vector2( 66.4596, 24.6217 )
  214. scale = Vector2( 2.99785, 2.99357 )
  215. texture = ExtResource( 1 )
  216. [node name="LoadButton" type="Button" parent="VBoxContainer/HBoxContainer/TextureRect"]
  217. margin_left = -53.5908
  218. margin_top = -69.5138
  219. margin_right = 78.4092
  220. margin_bottom = -22.5138
  221. focus_mode = 0
  222. enabled_focus_mode = 0
  223. flat = true
  224. __meta__ = {
  225. "_edit_use_anchors_": false
  226. }
  227. [node name="selected" type="Sprite" parent="VBoxContainer/HBoxContainer/TextureRect/LoadButton"]
  228. visible = false
  229. position = Vector2( 67.4664, 23.6069 )
  230. scale = Vector2( 2.99633, 2.98568 )
  231. texture = ExtResource( 1 )
  232. [node name="SettingsButton" type="Button" parent="VBoxContainer/HBoxContainer/TextureRect"]
  233. margin_left = -52.0
  234. margin_top = -12.0
  235. margin_right = 78.0
  236. margin_bottom = 34.0
  237. focus_mode = 0
  238. enabled_focus_mode = 0
  239. flat = true
  240. __meta__ = {
  241. "_edit_use_anchors_": false
  242. }
  243. [node name="selected" type="Sprite" parent="VBoxContainer/HBoxContainer/TextureRect/SettingsButton"]
  244. visible = false
  245. position = Vector2( 65.487, 22.6082 )
  246. scale = Vector2( 2.99666, 2.9897 )
  247. texture = ExtResource( 1 )
  248. [node name="ExitButton" type="Button" parent="VBoxContainer/HBoxContainer/TextureRect"]
  249. margin_left = -52.0
  250. margin_top = 44.0
  251. margin_right = 80.0
  252. margin_bottom = 91.0
  253. focus_mode = 0
  254. enabled_focus_mode = 0
  255. flat = true
  256. __meta__ = {
  257. "_edit_use_anchors_": false
  258. }
  259. [node name="selected" type="Sprite" parent="VBoxContainer/HBoxContainer/TextureRect/ExitButton"]
  260. visible = false
  261. position = Vector2( 65.4569, 23.674 )
  262. scale = Vector2( 2.99495, 2.99338 )
  263. texture = ExtResource( 1 )
  264. [node name="TimeMachine" type="Node2D" parent="."]
  265. script = ExtResource( 18 )
  266. [node name="Transit" parent="TimeMachine" instance=ExtResource( 12 )]
  267. [connection signal="timeout" from="AutoPlayer/Delay" to="AutoPlayer" method="_on_Delay_timeout"]
  268. [connection signal="timeout" from="AutoPlayer/Timer" to="AutoPlayer" method="_on_Timer_timeout"]
  269. [connection signal="timeout" from="AutoPlayer/StayTime" to="AutoPlayer" method="_on_StayTime_timeout"]
  270. [connection signal="mouse_entered" from="VBoxContainer/HBoxContainer/TextureRect/PlayButton" to="." method="_on_PlayButton_mouse_entered"]
  271. [connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureRect/PlayButton" to="." method="_on_PlayButton_pressed"]
  272. [connection signal="mouse_entered" from="VBoxContainer/HBoxContainer/TextureRect/LoadButton" to="." method="_on_LoadButton_mouse_entered"]
  273. [connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureRect/LoadButton" to="." method="_on_LoadButton_pressed"]
  274. [connection signal="mouse_entered" from="VBoxContainer/HBoxContainer/TextureRect/SettingsButton" to="." method="_on_SettingsButton_mouse_entered"]
  275. [connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureRect/SettingsButton" to="." method="_on_SettingsButton_pressed"]
  276. [connection signal="mouse_entered" from="VBoxContainer/HBoxContainer/TextureRect/ExitButton" to="." method="_on_ExitButton_mouse_entered"]
  277. [connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureRect/ExitButton" to="." method="_on_ExitButton_pressed"]