level.tscn 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://testlevel/grid.png" type="Texture" id=1]
  3. [ext_resource path="res://player/player.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://enemies/red_robot/red_robot.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://door/door.tscn" type="PackedScene" id=4]
  6. [sub_resource type="SpatialMaterial" id=1]
  7. albedo_texture = ExtResource( 1 )
  8. roughness = 0.0
  9. uv1_scale = Vector3( 0.2, 0.2, 0.2 )
  10. uv1_triplanar = true
  11. [sub_resource type="ProceduralSky" id=2]
  12. sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
  13. sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
  14. sky_curve = 0.25
  15. ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
  16. ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
  17. ground_curve = 0.01
  18. sun_energy = 16.0
  19. [sub_resource type="Environment" id=3]
  20. background_mode = 2
  21. background_sky = SubResource( 2 )
  22. tonemap_mode = 2
  23. ssao_enabled = true
  24. glow_enabled = true
  25. glow_levels/7 = true
  26. glow_bloom = 0.04
  27. glow_blend_mode = 1
  28. glow_bicubic_upscale = true
  29. [node name="TestLevel1" type="Spatial"]
  30. [node name="CSGCombiner" type="CSGCombiner" parent="."]
  31. use_collision = true
  32. [node name="CSGPolygon" type="CSGPolygon" parent="CSGCombiner"]
  33. transform = Transform( 2.8171, 0, 0, 0, -4.37114e-08, 1, 0, -1.90739, -8.33745e-08, 0, 0, 0 )
  34. polygon = PoolVector2Array( -3.50726, -6.94367, -19.5666, -2.21825, -17.5059, 2.75588, -14.2372, 5.95353, -14.699, 11.6382, 3.66969, 13.9121, 10.3137, 10.3947, 13.6535, -2.60907, 3.88286, -8.72014 )
  35. material = SubResource( 1 )
  36. [node name="CSGBox" type="CSGBox" parent="CSGCombiner"]
  37. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.68174, 0 )
  38. width = 1.0
  39. height = 2.73437
  40. depth = 1.0
  41. [node name="CSGBox2" type="CSGBox" parent="CSGCombiner"]
  42. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.0119, 2.68174, -7.79963 )
  43. width = 1.0
  44. height = 2.73437
  45. depth = 1.0
  46. [node name="CSGBox3" type="CSGBox" parent="CSGCombiner"]
  47. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.0119, 2.68174, 0.806358 )
  48. width = 1.0
  49. height = 2.73437
  50. depth = 1.0
  51. [node name="CSGBox4" type="CSGBox" parent="CSGCombiner"]
  52. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.76559, 2.68174, 2.78063 )
  53. width = 1.0
  54. height = 2.73437
  55. depth = 1.0
  56. [node name="CSGBox6" type="CSGBox" parent="CSGCombiner"]
  57. transform = Transform( 0.904571, 0, 0.426324, 0, 1, 0, -0.426324, 0, 0.904571, 9.26933, 2.68174, 8.78354 )
  58. width = 11.8607
  59. height = 2.73437
  60. depth = 1.0
  61. [node name="CSGBox7" type="CSGBox" parent="CSGCombiner"]
  62. transform = Transform( -0.418785, 0, 0.908086, 0, 1, 0, -0.908086, 0, -0.418785, -31.1607, 2.68174, -1.20261 )
  63. width = 11.8607
  64. height = 2.73437
  65. depth = 1.0
  66. [node name="CSGBox5" type="CSGBox" parent="CSGCombiner"]
  67. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0542326, 2.68174, -5.50623 )
  68. width = 1.0
  69. height = 2.73437
  70. depth = 1.0
  71. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  72. environment = SubResource( 3 )
  73. [node name="robot" parent="." instance=ExtResource( 2 )]
  74. transform = Transform( 0.64733, 0, -0.76221, 0, 1, 0, 0.76221, 0, 0.64733, -21.4203, 0.311327, -15.2592 )
  75. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  76. transform = Transform( 0.639243, 0.652241, -0.407369, 0, 0.529736, 0.848163, 0.769005, -0.542182, 0.33863, 0, 0, 0 )
  77. shadow_enabled = true
  78. shadow_bias = 0.01
  79. directional_shadow_normal_bias = 0.37
  80. directional_shadow_bias_split_scale = 0.14
  81. directional_shadow_max_distance = 50.0
  82. [node name="big_robot" parent="." instance=ExtResource( 3 )]
  83. transform = Transform( 0.0389917, 0, 0.99924, 0, 1, 0, -0.99924, 0, 0.0389917, -19.625, 0.0937424, -11.9398 )
  84. [node name="big_robot2" parent="." instance=ExtResource( 3 )]
  85. transform = Transform( 0.17487, 0, 0.984592, 0, 1, 0, -0.984592, 0, 0.17487, -27.0627, 0.0937424, -4.46751 )
  86. [node name="big_robot3" parent="." instance=ExtResource( 3 )]
  87. transform = Transform( -0.726717, 0, 0.686938, 0, 1, 0, -0.686938, 0, -0.726717, -19.8223, 0.0937424, -0.584061 )
  88. [node name="big_robot4" parent="." instance=ExtResource( 3 )]
  89. transform = Transform( 0.47869, 0, 0.877984, 0, 1, 0, -0.877984, 0, 0.47869, -27.7045, 0.0937424, -18.273 )
  90. [node name="big_robot5" parent="." instance=ExtResource( 3 )]
  91. transform = Transform( 0.151595, 0, 0.988443, 0, 1, 0, -0.988443, 0, 0.151595, -27.7045, 0.0937424, -9.71521 )
  92. [node name="door" parent="." instance=ExtResource( 4 )]
  93. transform = Transform( 0.00977782, 0, -0.999952, 0, 1, 0, 0.999952, 0, 0.00977782, 5.99869, -0.231766, -16.1618 )