Game.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://Scripts/MainCamera.gd" type="Script" id=1]
  3. [ext_resource path="res://Scripts/LevelSwap.gd" type="Script" id=2]
  4. [ext_resource path="res://Scripts/Game.gd" type="Script" id=3]
  5. [ext_resource path="res://Scenes/Hub.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://Scripts/UI.gd" type="Script" id=5]
  7. [node name="Game" type="Node2D"]
  8. script = ExtResource( 3 )
  9. levelNames = [ "Square", "Lab", "Focus", "Atom", "template", "Corner", "Catalyzer" ]
  10. [node name="MainCamera" type="Camera2D" parent="."]
  11. current = true
  12. smoothing_enabled = true
  13. script = ExtResource( 1 )
  14. [node name="StartTimer" type="Timer" parent="."]
  15. wait_time = 3.0
  16. one_shot = true
  17. [node name="Ui" type="Control" parent="."]
  18. margin_right = 40.0
  19. margin_bottom = 40.0
  20. script = ExtResource( 5 )
  21. __meta__ = {
  22. "_edit_use_anchors_": false
  23. }
  24. [node name="Title" type="Label" parent="Ui"]
  25. margin_left = -502.476
  26. margin_top = -284.577
  27. margin_right = 497.524
  28. margin_bottom = -270.577
  29. text = "Mighty Liners 2 : Hyper Drift"
  30. align = 1
  31. __meta__ = {
  32. "_edit_use_anchors_": false
  33. }
  34. [node name="PressButton" type="Label" parent="Ui"]
  35. margin_left = -502.476
  36. margin_top = -260.0
  37. margin_right = 497.524
  38. margin_bottom = -246.0
  39. text = "Click on left button to spawn player"
  40. align = 1
  41. __meta__ = {
  42. "_edit_use_anchors_": false
  43. }
  44. [node name="InputList" type="Label" parent="Ui"]
  45. margin_left = -502.476
  46. margin_top = -238.0
  47. margin_right = 497.524
  48. margin_bottom = -224.0
  49. text = "List of player controls"
  50. align = 1
  51. __meta__ = {
  52. "_edit_use_anchors_": false
  53. }
  54. [node name="Hub" parent="." instance=ExtResource( 4 )]
  55. [node name="LevelSwap" type="Tween" parent="."]
  56. script = ExtResource( 2 )
  57. [connection signal="timeout" from="StartTimer" to="." method="_on_start_game"]
  58. [connection signal="timeout" from="StartTimer" to="Ui" method="hide"]
  59. [connection signal="input_list_updated" from="Hub" to="Ui" method="_on_Hub_input_list_updated"]