main.tscn 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. [gd_scene load_steps=17 format=2]
  2. [ext_resource path="res://camera.gd" type="Script" id=1]
  3. [ext_resource path="res://waypoint.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://noto_sans_regular.ttf" type="DynamicFontData" id=3]
  5. [sub_resource type="SpatialMaterial" id=1]
  6. albedo_color = Color( 0.6, 0.564706, 0.423529, 1 )
  7. [sub_resource type="CubeMesh" id=2]
  8. material = SubResource( 1 )
  9. size = Vector3( 16, 2, 16 )
  10. [sub_resource type="SpatialMaterial" id=3]
  11. albedo_color = Color( 0.788235, 0.788235, 0.788235, 1 )
  12. [sub_resource type="CubeMesh" id=4]
  13. material = SubResource( 3 )
  14. size = Vector3( 4, 1.5, 4 )
  15. [sub_resource type="SpatialMaterial" id=5]
  16. albedo_color = Color( 0.25098, 0.470588, 0.996078, 1 )
  17. [sub_resource type="CubeMesh" id=6]
  18. material = SubResource( 5 )
  19. size = Vector3( 1, 1, 1 )
  20. [sub_resource type="SpatialMaterial" id=7]
  21. albedo_color = Color( 0.435294, 0.917647, 0.380392, 1 )
  22. [sub_resource type="CubeMesh" id=8]
  23. material = SubResource( 7 )
  24. size = Vector3( 1, 1, 1 )
  25. [sub_resource type="SpatialMaterial" id=9]
  26. albedo_color = Color( 0.862745, 0.764706, 0.12549, 1 )
  27. [sub_resource type="CubeMesh" id=10]
  28. material = SubResource( 9 )
  29. size = Vector3( 1, 1, 1 )
  30. [sub_resource type="SpatialMaterial" id=11]
  31. albedo_color = Color( 0.996078, 0.266667, 0.25098, 1 )
  32. [sub_resource type="CubeMesh" id=12]
  33. material = SubResource( 11 )
  34. size = Vector3( 1, 1, 1 )
  35. [sub_resource type="DynamicFont" id=13]
  36. font_data = ExtResource( 3 )
  37. [node name="Main" type="Spatial"]
  38. [node name="Camera" type="Camera" parent="."]
  39. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 8 )
  40. fov = 75.0
  41. script = ExtResource( 1 )
  42. [node name="Ground" type="MeshInstance" parent="."]
  43. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 0 )
  44. mesh = SubResource( 2 )
  45. material/0 = null
  46. [node name="WhiteCube" type="MeshInstance" parent="."]
  47. mesh = SubResource( 4 )
  48. material/0 = null
  49. [node name="BlueCube" type="MeshInstance" parent="."]
  50. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, -5 )
  51. mesh = SubResource( 6 )
  52. material/0 = null
  53. [node name="WaypointAnchor" type="Position3D" parent="BlueCube"]
  54. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
  55. [node name="Waypoint" parent="BlueCube/WaypointAnchor" instance=ExtResource( 2 )]
  56. modulate = Color( 0.501961, 0.764706, 1, 1 )
  57. text = "Blue Waypoint"
  58. [node name="GreenCube" type="MeshInstance" parent="."]
  59. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 5 )
  60. mesh = SubResource( 8 )
  61. material/0 = null
  62. [node name="WaypointAnchor" type="Position3D" parent="GreenCube"]
  63. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
  64. [node name="Waypoint" parent="GreenCube/WaypointAnchor" instance=ExtResource( 2 )]
  65. modulate = Color( 0.419608, 1, 0.427451, 1 )
  66. text = "Green Waypoint"
  67. [node name="YellowCube" type="MeshInstance" parent="."]
  68. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 5 )
  69. mesh = SubResource( 10 )
  70. material/0 = null
  71. [node name="WaypointAnchor" type="Position3D" parent="YellowCube"]
  72. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
  73. [node name="Waypoint" parent="YellowCube/WaypointAnchor" instance=ExtResource( 2 )]
  74. modulate = Color( 1, 0.992157, 0.419608, 1 )
  75. text = "Yellow Waypoint (non-sticky)"
  76. sticky = false
  77. [node name="RedCube" type="MeshInstance" parent="."]
  78. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, -5 )
  79. mesh = SubResource( 12 )
  80. material/0 = null
  81. [node name="WaypointAnchor" type="Position3D" parent="RedCube"]
  82. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
  83. [node name="Waypoint" parent="RedCube/WaypointAnchor" instance=ExtResource( 2 )]
  84. modulate = Color( 1, 0.466667, 0.427451, 1 )
  85. text = "Red Waypoint"
  86. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  87. transform = Transform( -0.642788, -0.383022, 0.663414, 0, 0.866025, 0.5, -0.766044, 0.321394, -0.556671, 0, 6, -9 )
  88. light_energy = 0.9
  89. shadow_enabled = true
  90. shadow_bias = 0.06
  91. directional_shadow_blend_splits = true
  92. directional_shadow_normal_bias = 0.0
  93. directional_shadow_bias_split_scale = 0.7
  94. directional_shadow_max_distance = 60.0
  95. [node name="Label" type="Label" parent="."]
  96. margin_left = 10.0
  97. margin_top = 10.0
  98. margin_right = 50.0
  99. margin_bottom = 24.0
  100. custom_colors/font_color_shadow = Color( 0, 0, 0, 0.501961 )
  101. custom_constants/shadow_offset_x = 1
  102. custom_constants/shadow_offset_y = 1
  103. custom_fonts/font = SubResource( 13 )
  104. text = "Press Esc or F10 to toggle mouse capture"
  105. __meta__ = {
  106. "_edit_use_anchors_": false
  107. }