Main.tscn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://Main.gd" type="Script" id=1]
  3. [ext_resource path="res://Player.gd" type="Script" id=2]
  4. [ext_resource path="res://ChunkSystem.gd" type="Script" id=3]
  5. [sub_resource type="ProceduralSky" id=4]
  6. sun_latitude = 135.0
  7. sun_energy = 4.66
  8. [sub_resource type="Environment" id=2]
  9. background_mode = 2
  10. background_sky = SubResource( 4 )
  11. [sub_resource type="CapsuleShape" id=8]
  12. [sub_resource type="CapsuleMesh" id=7]
  13. [sub_resource type="SpatialMaterial" id=6]
  14. albedo_color = Color( 0.168627, 0.164706, 0.913725, 1 )
  15. [sub_resource type="SphereMesh" id=5]
  16. material = SubResource( 6 )
  17. radius = 7.0
  18. height = 14.0
  19. [node name="root" type="Spatial"]
  20. script = ExtResource( 1 )
  21. __meta__ = {
  22. "_edit_lock_": true
  23. }
  24. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  25. environment = SubResource( 2 )
  26. [node name="Player" type="KinematicBody" parent="."]
  27. script = ExtResource( 2 )
  28. [node name="Camera" type="Camera" parent="Player"]
  29. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.978945, -0.910777 )
  30. far = 500.0
  31. [node name="CollisionShape" type="CollisionShape" parent="Player"]
  32. transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
  33. shape = SubResource( 8 )
  34. [node name="OmniLight" type="OmniLight" parent="Player"]
  35. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.317136, 0.127762 )
  36. visible = false
  37. light_energy = 11.83
  38. [node name="MeshInstance" type="MeshInstance" parent="Player"]
  39. transform = Transform( 1, 0, 0, 0, -0.0140669, 0.999901, 0, -0.999901, -0.0140669, 0, 0, 0 )
  40. mesh = SubResource( 7 )
  41. material/0 = null
  42. [node name="SpotLight" type="SpotLight" parent="Player/MeshInstance"]
  43. transform = Transform( 1, 0, 0, 0, 0.573905, -0.818922, 0, 0.818922, 0.573905, -0.00356923, 0.433873, 1.27676 )
  44. light_energy = 7.3
  45. [node name="Chunks" type="Spatial" parent="."]
  46. script = ExtResource( 3 )
  47. __meta__ = {
  48. "_edit_lock_": true
  49. }
  50. [node name="UI" type="Control" parent="."]
  51. margin_right = 40.0
  52. margin_bottom = 40.0
  53. __meta__ = {
  54. "_edit_use_anchors_": false
  55. }
  56. [node name="1" type="TextEdit" parent="UI"]
  57. margin_right = 333.0
  58. margin_bottom = 40.0
  59. rect_pivot_offset = Vector2( 186, 75 )
  60. text = "1"
  61. __meta__ = {
  62. "_edit_use_anchors_": false
  63. }
  64. [node name="2" type="TextEdit" parent="UI"]
  65. margin_left = 397.0
  66. margin_top = 1.0
  67. margin_right = 789.0
  68. margin_bottom = 41.0
  69. rect_pivot_offset = Vector2( 33, 74 )
  70. text = "2"
  71. __meta__ = {
  72. "_edit_use_anchors_": false
  73. }
  74. [node name="3" type="TextEdit" parent="UI"]
  75. margin_top = 44.0
  76. margin_right = 331.0
  77. margin_bottom = 84.0
  78. text = "3"
  79. __meta__ = {
  80. "_edit_use_anchors_": false
  81. }
  82. [node name="4" type="TextEdit" parent="UI"]
  83. margin_left = 396.0
  84. margin_top = 47.0
  85. margin_right = 789.0
  86. margin_bottom = 87.0
  87. text = "4"
  88. [node name="reference" type="MeshInstance" parent="."]
  89. visible = false
  90. mesh = SubResource( 5 )
  91. material/0 = null