MAIN.tscn 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. [gd_scene load_steps=17 format=2]
  2. [ext_resource path="res://PlanetNode.gd" type="Script" id=1]
  3. [ext_resource path="res://MAIN.gd" type="Script" id=2]
  4. [ext_resource path="res://Ship.gd" type="Script" id=3]
  5. [ext_resource path="res://CAMERA.gd" type="Script" id=4]
  6. [ext_resource path="res://SpacePing_faders_point.png" type="Texture" id=6]
  7. [ext_resource path="res://SpacePing_faders_stranded.png" type="Texture" id=7]
  8. [ext_resource path="res://SpacePing_faders_lithobroken.png" type="Texture" id=8]
  9. [ext_resource path="res://FontedLabel.gd" type="Script" id=9]
  10. [ext_resource path="res://top_panel.gd" type="Script" id=10]
  11. [ext_resource path="res://level_indicator.shader" type="Shader" id=11]
  12. [ext_resource path="res://PING_RECT.gd" type="Script" id=12]
  13. [ext_resource path="res://multiplier.shader" type="Shader" id=13]
  14. [sub_resource type="Curve" id=1]
  15. _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.93299, 0.363636 ), -1.39234, -1.39234, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
  16. [sub_resource type="ShaderMaterial" id=2]
  17. shader = ExtResource( 13 )
  18. [sub_resource type="ShaderMaterial" id=3]
  19. shader = ExtResource( 11 )
  20. shader_param/full = 1.0
  21. [sub_resource type="GradientTexture" id=4]
  22. [node name="MAIN" type="Node2D"]
  23. script = ExtResource( 2 )
  24. [node name="PlanetNode1" type="Node2D" parent="."]
  25. position = Vector2( 5.65674, 282.843 )
  26. script = ExtResource( 1 )
  27. color = Color( 1, 0, 0, 1 )
  28. [node name="PlanetNode2" type="Node2D" parent="."]
  29. position = Vector2( 438.406, -144.25 )
  30. script = ExtResource( 1 )
  31. color = Color( 1, 0, 0.960784, 1 )
  32. mass = 50
  33. [node name="PlanetNode3" type="Node2D" parent="."]
  34. position = Vector2( 356.382, 557.2 )
  35. script = ExtResource( 1 )
  36. color = Color( 0.988235, 0.909804, 0.0666667, 1 )
  37. mass = 150
  38. [node name="PlanetNode4" type="Node2D" parent="."]
  39. position = Vector2( 661.852, 189.505 )
  40. script = ExtResource( 1 )
  41. color = Color( 0, 0.882353, 1, 1 )
  42. mass = 10
  43. [node name="SHIP" type="Node2D" parent="."]
  44. script = ExtResource( 3 )
  45. predictor_curve = SubResource( 1 )
  46. [node name="CAMERA" type="Camera2D" parent="SHIP"]
  47. current = true
  48. script = ExtResource( 4 )
  49. [node name="Polygon2D" type="Polygon2D" parent="SHIP/CAMERA"]
  50. z_index = -1
  51. color = Color( 0.0862745, 0.0862745, 0.0862745, 1 )
  52. polygon = PoolVector2Array( -320, -456.5, -632, -416.5, -598, 431.5, 396, 497.5, 604, 311.5, 616, -270.5, 470, -568.5 )
  53. [node name="Zshifter" type="Node2D" parent="SHIP/CAMERA"]
  54. z_index = 5
  55. [node name="point_here" type="TextureRect" parent="SHIP/CAMERA/Zshifter"]
  56. visible = false
  57. margin_left = -512.0
  58. margin_top = -300.0
  59. margin_right = 512.0
  60. margin_bottom = 300.0
  61. texture = ExtResource( 6 )
  62. stretch_mode = 4
  63. __meta__ = {
  64. "_edit_use_anchors_": false
  65. }
  66. [node name="lithobroken" type="TextureRect" parent="SHIP/CAMERA/Zshifter"]
  67. visible = false
  68. margin_left = -512.0
  69. margin_top = -300.0
  70. margin_right = 512.0
  71. margin_bottom = 300.0
  72. texture = ExtResource( 8 )
  73. stretch_mode = 4
  74. __meta__ = {
  75. "_edit_use_anchors_": false
  76. }
  77. [node name="stranded" type="TextureRect" parent="SHIP/CAMERA/Zshifter"]
  78. visible = false
  79. margin_left = -512.0
  80. margin_top = -300.0
  81. margin_right = 512.0
  82. margin_bottom = 300.0
  83. texture = ExtResource( 7 )
  84. stretch_mode = 4
  85. __meta__ = {
  86. "_edit_use_anchors_": false
  87. }
  88. [node name="FontedLabel" type="Label" parent="SHIP/CAMERA"]
  89. anchor_right = 1.0
  90. margin_bottom = 36.0
  91. grow_horizontal = 2
  92. align = 1
  93. script = ExtResource( 9 )
  94. __meta__ = {
  95. "_edit_use_anchors_": false
  96. }
  97. [node name="panel_node" type="Node2D" parent="SHIP/CAMERA"]
  98. position = Vector2( -512, -300 )
  99. [node name="top_panel" type="Node2D" parent="SHIP/CAMERA/panel_node"]
  100. script = ExtResource( 10 )
  101. [node name="retreat_pos" type="Node2D" parent="SHIP/CAMERA/panel_node/top_panel"]
  102. [node name="ColorRect" type="ColorRect" parent="SHIP/CAMERA/panel_node/top_panel"]
  103. visible = false
  104. margin_right = 1022.0
  105. margin_bottom = 72.0
  106. color = Color( 0, 0, 0, 1 )
  107. __meta__ = {
  108. "_edit_use_anchors_": false
  109. }
  110. [node name="Label" type="Label" parent="SHIP/CAMERA/panel_node/top_panel/ColorRect"]
  111. margin_right = 40.0
  112. margin_bottom = 14.0
  113. text = "PING: SOMETHING
  114. "
  115. [node name="ColorRect4" type="ColorRect" parent="SHIP/CAMERA/panel_node/top_panel"]
  116. visible = false
  117. margin_left = 330.0
  118. margin_top = -2.0
  119. margin_right = 676.0
  120. margin_bottom = 72.0
  121. __meta__ = {
  122. "_edit_use_anchors_": false
  123. }
  124. [node name="ColorRect2" type="ColorRect" parent="SHIP/CAMERA/panel_node/top_panel"]
  125. visible = false
  126. material = SubResource( 2 )
  127. margin_left = 330.0
  128. margin_right = 740.0
  129. margin_bottom = 72.0
  130. grow_horizontal = 0
  131. rect_min_size = Vector2( 200, 0 )
  132. color = Color( 1, 0.588235, 0, 1 )
  133. __meta__ = {
  134. "_edit_use_anchors_": false
  135. }
  136. [node name="Label" type="Label" parent="SHIP/CAMERA/panel_node/top_panel/ColorRect2"]
  137. margin_right = 40.0
  138. margin_bottom = 14.0
  139. text = "3werrewrwerw"
  140. [node name="ColorRect3" type="ColorRect" parent="SHIP/CAMERA/panel_node/top_panel"]
  141. visible = false
  142. margin_left = 676.0
  143. margin_top = -2.0
  144. margin_right = 1022.0
  145. margin_bottom = 72.0
  146. color = Color( 1, 0.678431, 0, 0.360784 )
  147. script = ExtResource( 12 )
  148. __meta__ = {
  149. "_edit_use_anchors_": false
  150. }
  151. [node name="visual" type="Polygon2D" parent="SHIP"]
  152. material = SubResource( 3 )
  153. position = Vector2( 8.92458, -0.480768 )
  154. scale = Vector2( 0.495286, 0.519231 )
  155. z_index = 1
  156. color = Color( 1, 0.890196, 0.00392157, 1 )
  157. texture = SubResource( 4 )
  158. polygon = PoolVector2Array( -16, -27, 88, 1, -15, 25 )
  159. uv = PoolVector2Array( 0, 1, 0, 0, 0, 1 )
  160. [node name="fire" type="Polygon2D" parent="SHIP/visual"]
  161. position = Vector2( -22.0453, -0.146454 )
  162. color = Color( 0, 1, 1, 1 )
  163. offset = Vector2( 18.5097, -0.560638 )
  164. polygon = PoolVector2Array( -21, -16, -21, 16, -49, 1 )