WaterMenu.tscn 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. [gd_scene load_steps=29 format=2]
  2. [ext_resource path="res://default_env.tres" type="Environment" id=1]
  3. [ext_resource path="res://scripts/AutoPlayer.gd" type="Script" id=2]
  4. [ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=3]
  5. [ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=5]
  7. [ext_resource path="res://scripts/Lobby.gd" type="Script" id=6]
  8. [ext_resource path="res://assets/Background/lobby1.png" type="Texture" id=7]
  9. [ext_resource path="res://assets/Dummy/dummy.png" type="Texture" id=8]
  10. [ext_resource path="res://assets/GUI/transparent.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/AssetPLayerArrat2.png" type="Texture" id=11]
  13. [ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=12]
  14. [ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=13]
  15. [ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=14]
  16. [ext_resource path="res://assets/Water/Old/2water(1frame).png" type="Texture" id=15]
  17. [ext_resource path="res://assets/Water/Old/3water(1frame).png" type="Texture" id=16]
  18. [ext_resource path="res://assets/Water/Old/1water(1frame).png" type="Texture" id=17]
  19. [ext_resource path="res://assets/Duck/justduck.png" type="Texture" 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( 7 ), 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( 19.6767, 23.7101 )
  35. [sub_resource type="SpriteFrames" id=6]
  36. animations = [ {
  37. "frames": [ ExtResource( 14 ), ExtResource( 3 ) ],
  38. "loop": true,
  39. "name": "Idle",
  40. "speed": 5.0
  41. }, {
  42. "frames": [ ExtResource( 13 ), ExtResource( 5 ), ExtResource( 12 ) ],
  43. "loop": true,
  44. "name": "SquatAction",
  45. "speed": 5.0
  46. }, {
  47. "frames": [ ExtResource( 11 ), ExtResource( 4 ) ],
  48. "loop": true,
  49. "name": "Walk",
  50. "speed": 4.0
  51. }, {
  52. "frames": [ ExtResource( 3 ) ],
  53. "loop": true,
  54. "name": "jump",
  55. "speed": 5.0
  56. }, {
  57. "frames": [ ExtResource( 13 ) ],
  58. "loop": true,
  59. "name": "SquatIdle",
  60. "speed": 5.0
  61. }, {
  62. "frames": [ ExtResource( 14 ) ],
  63. "loop": true,
  64. "name": "posible",
  65. "speed": 5.0
  66. } ]
  67. [sub_resource type="RectangleShape2D" id=7]
  68. extents = Vector2( 19.8385, 19.4203 )
  69. [sub_resource type="Shader" id=8]
  70. code = "shader_type canvas_item;
  71. uniform float lod: hint_range(0.0, 5) = 1.0;
  72. void fragment(){
  73. vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
  74. COLOR = color;
  75. }"
  76. [sub_resource type="ShaderMaterial" id=9]
  77. shader = SubResource( 8 )
  78. shader_param/lod = 1.0
  79. [sub_resource type="World" id=10]
  80. environment = ExtResource( 1 )
  81. fallback_environment = ExtResource( 1 )
  82. [node name="Node2D" type="Node2D"]
  83. [node name="Terrain" type="StaticBody2D" parent="."]
  84. position = Vector2( 16, 374.147 )
  85. [node name="TerrainCollision" type="CollisionShape2D" parent="Terrain"]
  86. position = Vector2( 495.805, 53.6347 )
  87. shape = SubResource( 1 )
  88. [node name="lobby1" type="Sprite" parent="Terrain"]
  89. position = Vector2( 494.82, -72.5518 )
  90. scale = Vector2( 5.33135, 5.54181 )
  91. texture = ExtResource( 7 )
  92. script = ExtResource( 6 )
  93. [node name="AnimatedSprite" type="AnimatedSprite" parent="Terrain/lobby1"]
  94. position = Vector2( 0.151642, -0.225491 )
  95. frames = SubResource( 2 )
  96. animation = "idle"
  97. [node name="UpBorder" type="CollisionShape2D" parent="Terrain"]
  98. position = Vector2( 486.356, -386.304 )
  99. shape = SubResource( 3 )
  100. [node name="LeftBorder" type="CollisionShape2D" parent="Terrain"]
  101. position = Vector2( -11.4124, -163.588 )
  102. shape = SubResource( 4 )
  103. [node name="RightBorder" type="CollisionShape2D" parent="Terrain"]
  104. position = Vector2( 1008.78, -160.513 )
  105. shape = SubResource( 4 )
  106. [node name="Player" type="KinematicBody2D" parent="."]
  107. visible = false
  108. position = Vector2( -42.7076, 317.947 )
  109. script = ExtResource( 2 )
  110. [node name="Collision" type="CollisionShape2D" parent="Player"]
  111. position = Vector2( 101.15, 46.1497 )
  112. shape = SubResource( 5 )
  113. [node name="AnimatedSprite" type="AnimatedSprite" parent="Player"]
  114. position = Vector2( 94.3338, 43.5671 )
  115. scale = Vector2( 4.41596, 4.19006 )
  116. frames = SubResource( 6 )
  117. animation = "Idle"
  118. [node name="CollisionSit" type="CollisionShape2D" parent="Player"]
  119. position = Vector2( 100.997, 50.2748 )
  120. shape = SubResource( 7 )
  121. disabled = true
  122. [node name="Delay" type="Timer" parent="Player"]
  123. wait_time = 0.001
  124. autostart = true
  125. [node name="Timer" type="Timer" parent="Player"]
  126. wait_time = 5.0
  127. autostart = true
  128. [node name="StayTime" type="Timer" parent="Player"]
  129. wait_time = 7.0
  130. [node name="dummy2" type="Sprite" parent="."]
  131. position = Vector2( 789.828, 372.345 )
  132. scale = Vector2( 4.23422, 4.23422 )
  133. texture = ExtResource( 8 )
  134. [node name="Blur" type="Sprite" parent="."]
  135. material = SubResource( 9 )
  136. position = Vector2( 510.229, 299.185 )
  137. scale = Vector2( 5.33872, 5.54181 )
  138. texture = ExtResource( 9 )
  139. [node name="PlayButton" type="Button" parent="."]
  140. margin_left = 406.0
  141. margin_top = 168.831
  142. margin_right = 621.0
  143. margin_bottom = 231.831
  144. text = "Play"
  145. __meta__ = {
  146. "_edit_use_anchors_": false
  147. }
  148. [node name="SettingsButton" type="Button" parent="."]
  149. margin_left = 406.0
  150. margin_top = 245.72
  151. margin_right = 621.0
  152. margin_bottom = 308.72
  153. text = "Settings"
  154. __meta__ = {
  155. "_edit_use_anchors_": false
  156. }
  157. [node name="ExitButton" type="Button" parent="."]
  158. margin_left = 406.0
  159. margin_top = 324.292
  160. margin_right = 621.0
  161. margin_bottom = 387.292
  162. text = "Exit"
  163. __meta__ = {
  164. "_edit_use_anchors_": false
  165. }
  166. [node name="Viewport" type="Viewport" parent="."]
  167. pause_mode = 1
  168. size = Vector2( 640, 480 )
  169. own_world = true
  170. world = SubResource( 10 )
  171. handle_input_locally = false
  172. msaa = 2
  173. usage = 0
  174. audio_listener_enable_2d = true
  175. audio_listener_enable_3d = true
  176. [node name="Camera2D" type="Camera2D" parent="."]
  177. position = Vector2( 511.432, 298.094 )
  178. [node name="3water(1frame)" type="Sprite" parent="."]
  179. position = Vector2( 510.453, 302.636 )
  180. scale = Vector2( 5.34209, 5.34209 )
  181. texture = ExtResource( 16 )
  182. [node name="justduck" type="Sprite" parent="."]
  183. position = Vector2( 275.445, 472.403 )
  184. scale = Vector2( 4.83449, 4.83449 )
  185. texture = ExtResource( 18 )
  186. [node name="2water(1frame)" type="Sprite" parent="."]
  187. position = Vector2( 510.471, 302.923 )
  188. scale = Vector2( 5.31653, 5.31653 )
  189. texture = ExtResource( 15 )
  190. [node name="1water(1frame)" type="Sprite" parent="."]
  191. position = Vector2( 511.79, 308.514 )
  192. scale = Vector2( 5.32126, 5.32126 )
  193. texture = ExtResource( 17 )
  194. [connection signal="timeout" from="Player/Delay" to="Player" method="_on_Delay_timeout"]
  195. [connection signal="timeout" from="Player/Timer" to="Player" method="_on_Timer_timeout"]
  196. [connection signal="timeout" from="Player/StayTime" to="Player" method="_on_StayTime_timeout"]