MAIN.tscn 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. [gd_scene load_steps=17 format=2]
  2. [ext_resource path="res://stars.gd" type="Script" id=1]
  3. [ext_resource path="res://MAIN.gd" type="Script" id=2]
  4. [ext_resource path="res://sun.gd" type="Script" id=3]
  5. [ext_resource path="res://click_listen.gd" type="Script" id=4]
  6. [ext_resource path="res://notexactly.png" type="Texture" id=5]
  7. [ext_resource path="res://cme.gd" type="Script" id=6]
  8. [ext_resource path="res://ship.gd" type="Script" id=7]
  9. [ext_resource path="res://ship_dead.png" type="Texture" id=8]
  10. [ext_resource path="res://ship_flying.png" type="Texture" id=9]
  11. [ext_resource path="res://earth.png" type="Texture" id=10]
  12. [ext_resource path="res://earth.gd" type="Script" id=11]
  13. [ext_resource path="res://fire3.png" type="Texture" id=12]
  14. [ext_resource path="res://fire1.png" type="Texture" id=13]
  15. [ext_resource path="res://fire2.png" type="Texture" id=14]
  16. [sub_resource type="RectangleShape2D" id=1]
  17. [sub_resource type="CircleShape2D" id=2]
  18. [node name="MAIN" type="Node2D"]
  19. script = ExtResource( 2 )
  20. [node name="Polygon2D" type="Polygon2D" parent="."]
  21. z_index = -1
  22. color = Color( 0, 0, 0, 1 )
  23. polygon = PoolVector2Array( 115, -150, -153, 48, -151, 634, 521, 766, 1101, 690, 1149, 328, 1141, -34, 851, -234 )
  24. [node name="stars" type="Node2D" parent="."]
  25. script = ExtResource( 1 )
  26. [node name="star" type="Polygon2D" parent="stars"]
  27. polygon = PoolVector2Array( 67, -72, 57, -52, 77, -52 )
  28. [node name="sun" type="Polygon2D" parent="."]
  29. position = Vector2( 104, 16 )
  30. polygon = PoolVector2Array( -34, -50, 15, -18, 63, 24, 91, 112, 119, 268, 111, 418, 67, 576, 20, 626, -125, 686, -313, 494, -329, 184, -182, -76 )
  31. script = ExtResource( 3 )
  32. [node name="click_listen" type="Polygon2D" parent="."]
  33. color = Color( 0, 0, 0, 1 )
  34. polygon = PoolVector2Array( 386, 102, 192, 98, 208, 288, 369, 336, 487, 340, 764, 322, 805, 240, 760, 188 )
  35. script = ExtResource( 4 )
  36. [node name="TextureRect" type="TextureRect" parent="click_listen"]
  37. margin_left = 154.0
  38. margin_top = 66.0
  39. margin_right = 854.0
  40. margin_bottom = 442.0
  41. texture = ExtResource( 5 )
  42. expand = true
  43. stretch_mode = 1
  44. [node name="cme" type="Node2D" parent="."]
  45. position = Vector2( 208, 326 )
  46. script = ExtResource( 6 )
  47. [node name="scaler" type="Node2D" parent="cme"]
  48. position = Vector2( -84, -58 )
  49. scale = Vector2( 0.145877, 0.145877 )
  50. [node name="0" type="TextureRect" parent="cme/scaler"]
  51. margin_right = 40.0
  52. margin_bottom = 40.0
  53. texture = ExtResource( 13 )
  54. [node name="1" type="TextureRect" parent="cme/scaler"]
  55. visible = false
  56. margin_right = 40.0
  57. margin_bottom = 40.0
  58. texture = ExtResource( 14 )
  59. [node name="2" type="TextureRect" parent="cme/scaler"]
  60. visible = false
  61. margin_right = 40.0
  62. margin_bottom = 40.0
  63. texture = ExtResource( 12 )
  64. [node name="KinematicBody2D" type="KinematicBody2D" parent="cme"]
  65. [node name="Polygon2D2" type="CollisionPolygon2D" parent="cme/KinematicBody2D"]
  66. polygon = PoolVector2Array( -26, 12, 46, 24, 28, -22, -48, -22 )
  67. [node name="ship" type="Node2D" parent="."]
  68. position = Vector2( 1110, 188 )
  69. script = ExtResource( 7 )
  70. [node name="scaler" type="Node2D" parent="ship"]
  71. position = Vector2( -104, -68 )
  72. scale = Vector2( 0.2, 0.2 )
  73. [node name="alive" type="TextureRect" parent="ship/scaler"]
  74. margin_right = 40.0
  75. margin_bottom = 40.0
  76. texture = ExtResource( 9 )
  77. stretch_mode = 1
  78. [node name="dead" type="TextureRect" parent="ship/scaler"]
  79. visible = false
  80. margin_right = 40.0
  81. margin_bottom = 40.0
  82. texture = ExtResource( 8 )
  83. [node name="area" type="Area2D" parent="ship/scaler"]
  84. position = Vector2( 560, 340 )
  85. [node name="CollisionShape2D" type="CollisionShape2D" parent="ship/scaler/area"]
  86. scale = Vector2( 47.4, 31.4 )
  87. shape = SubResource( 1 )
  88. [node name="earth" type="Node2D" parent="."]
  89. position = Vector2( 1614, 452 )
  90. script = ExtResource( 11 )
  91. [node name="scaler" type="Node2D" parent="earth"]
  92. position = Vector2( -414, -248 )
  93. scale = Vector2( 0.658861, 0.658861 )
  94. [node name="TextureRect" type="TextureRect" parent="earth/scaler"]
  95. margin_right = 1280.0
  96. margin_bottom = 720.0
  97. texture = ExtResource( 10 )
  98. [node name="area" type="Area2D" parent="earth/scaler"]
  99. position = Vector2( 625.322, 379.443 )
  100. scale = Vector2( 3.40926, 2.95926 )
  101. [node name="CollisionShape2D" type="CollisionShape2D" parent="earth/scaler/area"]
  102. scale = Vector2( 6.85902, 7.20344 )
  103. shape = SubResource( 2 )