game_splitscreen.tscn 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [gd_scene load_steps=8 format=3 uid="uid://2elur2m0il32"]
  2. [ext_resource type="Script" path="res://game_splitscreen.gd" id="1_60qgt"]
  3. [ext_resource type="PackedScene" uid="uid://dggactv0aho4p" path="res://gui/pause_menu_splitscreen.tscn" id="2_xkexm"]
  4. [ext_resource type="PackedScene" uid="uid://ctgumjaytuoch" path="res://level/level.tscn" id="3_e0nyr"]
  5. [ext_resource type="PackedScene" uid="uid://vh7pmputa7r3" path="res://player/player.tscn" id="4_8j0va"]
  6. [ext_resource type="PackedScene" uid="uid://cw6nldo3rjyyq" path="res://level/background/parallax_background.tscn" id="5_47vt4"]
  7. [sub_resource type="Gradient" id="Gradient_77njx"]
  8. [sub_resource type="GradientTexture1D" id="GradientTexture1D_5sxld"]
  9. gradient = SubResource("Gradient_77njx")
  10. width = 2
  11. [node name="GameSplitscreen" type="Node"]
  12. process_mode = 3
  13. script = ExtResource("1_60qgt")
  14. [node name="Black" type="ColorRect" parent="."]
  15. process_mode = 1
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. offset_right = 6.10352e-05
  20. offset_bottom = 3.05176e-05
  21. color = Color(0, 0, 0, 1)
  22. [node name="SplitContainer" type="HSplitContainer" parent="Black"]
  23. layout_mode = 1
  24. anchors_preset = 15
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. theme_override_constants/separation = 0
  30. theme_override_icons/grabber = SubResource("GradientTexture1D_5sxld")
  31. dragger_visibility = 1
  32. [node name="ViewportContainer1" type="SubViewportContainer" parent="Black/SplitContainer"]
  33. layout_mode = 2
  34. size_flags_horizontal = 3
  35. size_flags_vertical = 3
  36. stretch = true
  37. [node name="Viewport1" type="SubViewport" parent="Black/SplitContainer/ViewportContainer1"]
  38. unique_name_in_owner = true
  39. handle_input_locally = false
  40. canvas_item_default_texture_filter = 0
  41. audio_listener_enable_2d = true
  42. size = Vector2i(399, 480)
  43. render_target_update_mode = 4
  44. [node name="Level" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("3_e0nyr")]
  45. [node name="Player1" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("4_8j0va")]
  46. unique_name_in_owner = true
  47. modulate = Color(1, 1.5, 2.5, 1)
  48. position = Vector2(90, 546)
  49. action_suffix = "_p1"
  50. [node name="Player2" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("4_8j0va")]
  51. unique_name_in_owner = true
  52. modulate = Color(3, 1, 1, 1)
  53. position = Vector2(120, 546)
  54. action_suffix = "_p2"
  55. [node name="ViewportContainer2" type="SubViewportContainer" parent="Black/SplitContainer"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. size_flags_vertical = 3
  59. stretch = true
  60. [node name="Viewport2" type="SubViewport" parent="Black/SplitContainer/ViewportContainer2"]
  61. unique_name_in_owner = true
  62. handle_input_locally = false
  63. canvas_item_default_texture_filter = 0
  64. audio_listener_enable_2d = true
  65. size = Vector2i(399, 480)
  66. render_target_update_mode = 4
  67. [node name="ParallaxBackground" parent="Black/SplitContainer/ViewportContainer2/Viewport2" instance=ExtResource("5_47vt4")]
  68. [node name="InterfaceLayer" type="CanvasLayer" parent="."]
  69. layer = 100
  70. [node name="PauseMenu" parent="InterfaceLayer" instance=ExtResource("2_xkexm")]
  71. [connection signal="coin_collected" from="Black/SplitContainer/ViewportContainer1/Viewport1/Player1" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]
  72. [connection signal="coin_collected" from="Black/SplitContainer/ViewportContainer1/Viewport1/Player2" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]