Main.tscn 2.9 KB

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