Main.tscn 2.7 KB

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