Main.tscn 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://Main.gd" type="Script" id=1]
  3. [ext_resource path="res://Player.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://ChunkSystem.gd" type="Script" id=3]
  5. [ext_resource path="res://tex/eso.jpg" type="Texture" id=4]
  6. [ext_resource path="res://shader/ground_shader.tres" type="Material" id=5]
  7. [ext_resource path="res://Downloader_UI.gd" type="Script" id=6]
  8. [sub_resource type="PanoramaSky" id=9]
  9. panorama = ExtResource( 4 )
  10. [sub_resource type="Environment" id=10]
  11. background_mode = 2
  12. background_sky = SubResource( 9 )
  13. background_energy = 4.61
  14. ambient_light_color = Color( 1, 1, 1, 1 )
  15. tonemap_mode = 3
  16. glow_enabled = true
  17. [sub_resource type="SpatialMaterial" id=6]
  18. albedo_color = Color( 0.168627, 0.164706, 0.913725, 1 )
  19. detail_enabled = true
  20. detail_blend_mode = 0
  21. detail_uv_layer = 0
  22. [sub_resource type="SphereMesh" id=5]
  23. material = SubResource( 6 )
  24. radius = 7.0
  25. height = 14.0
  26. [sub_resource type="PlaneMesh" id=11]
  27. material = ExtResource( 5 )
  28. size = Vector2( 20, 20 )
  29. [node name="Main" type="Spatial"]
  30. script = ExtResource( 1 )
  31. __meta__ = {
  32. "_edit_lock_": true
  33. }
  34. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  35. environment = SubResource( 10 )
  36. [node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"]
  37. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.02188, 36.5425, 0 )
  38. visible = false
  39. [node name="OmniLight" type="OmniLight" parent="WorldEnvironment"]
  40. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.10944, 4.63251, 4.7882 )
  41. [node name="Player" parent="." instance=ExtResource( 2 )]
  42. [node name="Chunks" type="Spatial" parent="."]
  43. script = ExtResource( 3 )
  44. __meta__ = {
  45. "_edit_lock_": true
  46. }
  47. [node name="UI" type="Control" parent="."]
  48. margin_right = 40.0
  49. margin_bottom = 40.0
  50. [node name="1" type="TextEdit" parent="UI"]
  51. margin_right = 333.0
  52. margin_bottom = 40.0
  53. rect_pivot_offset = Vector2( 186, 75 )
  54. text = "1"
  55. __meta__ = {
  56. "_edit_use_anchors_": false
  57. }
  58. [node name="2" type="TextEdit" parent="UI"]
  59. margin_left = 397.0
  60. margin_top = 1.0
  61. margin_right = 789.0
  62. margin_bottom = 41.0
  63. rect_pivot_offset = Vector2( 33, 74 )
  64. text = "2"
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="3" type="TextEdit" parent="UI"]
  69. margin_top = 44.0
  70. margin_right = 331.0
  71. margin_bottom = 84.0
  72. text = "3"
  73. __meta__ = {
  74. "_edit_use_anchors_": false
  75. }
  76. [node name="4" type="TextEdit" parent="UI"]
  77. margin_left = 396.0
  78. margin_top = 47.0
  79. margin_right = 789.0
  80. margin_bottom = 87.0
  81. text = "4"
  82. [node name="Downloader" type="Panel" parent="UI"]
  83. margin_left = 29.333
  84. margin_top = 97.0045
  85. margin_right = 294.33
  86. margin_bottom = 194.005
  87. script = ExtResource( 6 )
  88. [node name="VBoxContainer" type="VBoxContainer" parent="UI/Downloader"]
  89. margin_right = 264.0
  90. margin_bottom = 94.0
  91. [node name="Title" type="Label" parent="UI/Downloader/VBoxContainer"]
  92. margin_right = 264.0
  93. margin_bottom = 14.0
  94. text = "Downloader"
  95. align = 1
  96. [node name="Panel" type="HSeparator" parent="UI/Downloader/VBoxContainer"]
  97. margin_top = 18.0
  98. margin_right = 264.0
  99. margin_bottom = 22.0
  100. [node name="name" type="Label" parent="UI/Downloader/VBoxContainer"]
  101. margin_top = 26.0
  102. margin_right = 264.0
  103. margin_bottom = 40.0
  104. text = "name:"
  105. align = 1
  106. [node name="size" type="Label" parent="UI/Downloader/VBoxContainer"]
  107. margin_top = 44.0
  108. margin_right = 264.0
  109. margin_bottom = 58.0
  110. text = "size:"
  111. align = 1
  112. [node name="downloaded" type="Label" parent="UI/Downloader/VBoxContainer"]
  113. margin_top = 62.0
  114. margin_right = 264.0
  115. margin_bottom = 76.0
  116. text = "downloaded:"
  117. align = 1
  118. [node name="speed" type="Label" parent="UI/Downloader/VBoxContainer"]
  119. margin_top = 80.0
  120. margin_right = 264.0
  121. margin_bottom = 94.0
  122. text = "speed:"
  123. align = 1
  124. [node name="ProgressBar" type="ProgressBar" parent="UI/Downloader/VBoxContainer"]
  125. margin_top = 98.0
  126. margin_right = 264.0
  127. margin_bottom = 112.0
  128. [node name="reference" type="MeshInstance" parent="."]
  129. visible = false
  130. mesh = SubResource( 5 )
  131. material/0 = null
  132. [node name="plane" type="MeshInstance" parent="."]
  133. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.98035, 2.37647, 0.319568 )
  134. visible = false
  135. mesh = SubResource( 11 )
  136. material/0 = null