Main.tscn 3.6 KB

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