Main.tscn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [gd_scene load_steps=8 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. [sub_resource type="ProceduralSky" id=4]
  5. sun_latitude = 135.0
  6. sun_energy = 4.66
  7. [sub_resource type="Environment" id=2]
  8. background_mode = 2
  9. background_sky = SubResource( 4 )
  10. [sub_resource type="SphereShape" id=3]
  11. [sub_resource type="SpatialMaterial" id=6]
  12. albedo_color = Color( 0.168627, 0.164706, 0.913725, 1 )
  13. [sub_resource type="SphereMesh" id=5]
  14. material = SubResource( 6 )
  15. radius = 7.0
  16. height = 14.0
  17. [node name="Spatial" type="Spatial"]
  18. script = ExtResource( 1 )
  19. __meta__ = {
  20. "_edit_lock_": true
  21. }
  22. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  23. environment = SubResource( 2 )
  24. [node name="Player" type="KinematicBody" parent="."]
  25. script = ExtResource( 2 )
  26. [node name="Camera" type="Camera" parent="Player"]
  27. [node name="SpotLight" type="SpotLight" parent="Player/Camera"]
  28. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00356923, 0.0967088, 0.161055 )
  29. light_energy = 7.3
  30. [node name="CollisionShape" type="CollisionShape" parent="Player"]
  31. shape = SubResource( 3 )
  32. [node name="OmniLight" type="OmniLight" parent="Player"]
  33. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.319878, -0.629829 )
  34. light_energy = 11.83
  35. [node name="Tiles" type="Spatial" parent="."]
  36. __meta__ = {
  37. "_edit_lock_": true
  38. }
  39. [node name="UI" type="Control" parent="."]
  40. margin_right = 40.0
  41. margin_bottom = 40.0
  42. __meta__ = {
  43. "_edit_use_anchors_": false
  44. }
  45. [node name="1" type="TextEdit" parent="UI"]
  46. margin_right = 333.0
  47. margin_bottom = 40.0
  48. rect_pivot_offset = Vector2( 186, 75 )
  49. text = "1"
  50. __meta__ = {
  51. "_edit_use_anchors_": false
  52. }
  53. [node name="2" type="TextEdit" parent="UI"]
  54. margin_left = 397.0
  55. margin_top = 1.0
  56. margin_right = 789.0
  57. margin_bottom = 41.0
  58. rect_pivot_offset = Vector2( 33, 74 )
  59. text = "2"
  60. __meta__ = {
  61. "_edit_use_anchors_": false
  62. }
  63. [node name="3" type="TextEdit" parent="UI"]
  64. margin_top = 44.0
  65. margin_right = 331.0
  66. margin_bottom = 84.0
  67. text = "3"
  68. __meta__ = {
  69. "_edit_use_anchors_": false
  70. }
  71. [node name="4" type="TextEdit" parent="UI"]
  72. margin_left = 396.0
  73. margin_top = 47.0
  74. margin_right = 789.0
  75. margin_bottom = 87.0
  76. text = "4"
  77. __meta__ = {
  78. "_edit_use_anchors_": false
  79. }
  80. [node name="reference" type="MeshInstance" parent="."]
  81. visible = false
  82. mesh = SubResource( 5 )
  83. material/0 = null