Main.tscn 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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, 1, 0, 0, 0, 1, 0, 0.978945, -0.910777 )
  29. far = 500.0
  30. [node name="CollisionShape" type="CollisionShape" parent="Player"]
  31. transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
  32. shape = SubResource( 8 )
  33. [node name="OmniLight" type="OmniLight" parent="Player"]
  34. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.317136, 0.127762 )
  35. visible = false
  36. light_energy = 11.83
  37. [node name="MeshInstance" type="MeshInstance" parent="Player"]
  38. transform = Transform( 1, 0, 0, 0, -0.0140669, 0.999901, 0, -0.999901, -0.0140669, 0, 0, 0 )
  39. mesh = SubResource( 7 )
  40. material/0 = null
  41. [node name="SpotLight" type="SpotLight" parent="Player/MeshInstance"]
  42. transform = Transform( 1, 0, 0, 0, 0.573905, -0.818922, 0, 0.818922, 0.573905, -0.00356923, 0.433873, 1.27676 )
  43. light_energy = 7.3
  44. [node name="Tiles" type="Spatial" parent="."]
  45. __meta__ = {
  46. "_edit_lock_": true
  47. }
  48. [node name="UI" type="Control" parent="."]
  49. margin_right = 40.0
  50. margin_bottom = 40.0
  51. __meta__ = {
  52. "_edit_use_anchors_": false
  53. }
  54. [node name="1" type="TextEdit" parent="UI"]
  55. margin_right = 333.0
  56. margin_bottom = 40.0
  57. rect_pivot_offset = Vector2( 186, 75 )
  58. text = "1"
  59. __meta__ = {
  60. "_edit_use_anchors_": false
  61. }
  62. [node name="2" type="TextEdit" parent="UI"]
  63. margin_left = 397.0
  64. margin_top = 1.0
  65. margin_right = 789.0
  66. margin_bottom = 41.0
  67. rect_pivot_offset = Vector2( 33, 74 )
  68. text = "2"
  69. __meta__ = {
  70. "_edit_use_anchors_": false
  71. }
  72. [node name="3" type="TextEdit" parent="UI"]
  73. margin_top = 44.0
  74. margin_right = 331.0
  75. margin_bottom = 84.0
  76. text = "3"
  77. __meta__ = {
  78. "_edit_use_anchors_": false
  79. }
  80. [node name="4" type="TextEdit" parent="UI"]
  81. margin_left = 396.0
  82. margin_top = 47.0
  83. margin_right = 789.0
  84. margin_bottom = 87.0
  85. text = "4"
  86. [node name="reference" type="MeshInstance" parent="."]
  87. visible = false
  88. mesh = SubResource( 5 )
  89. material/0 = null