Main.tscn 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. [gd_scene load_steps=23 format=2]
  2. [ext_resource path="res://scripts/Main.gd" type="Script" id=1]
  3. [ext_resource path="res://Clock.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Security.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://default_env.tres" type="Environment" id=4]
  6. [ext_resource path="res://Player.tscn" type="PackedScene" id=5]
  7. [ext_resource path="res://building_segment.tscn" type="PackedScene" id=6]
  8. [ext_resource path="res://Pads.tscn" type="PackedScene" id=7]
  9. [ext_resource path="res://Bakery.tscn" type="PackedScene" id=8]
  10. [ext_resource path="res://Head.tscn" type="PackedScene" id=9]
  11. [ext_resource path="res://exported_models/sky.obj" type="ArrayMesh" id=10]
  12. [ext_resource path="res://scripts/sky.gd" type="Script" id=11]
  13. [ext_resource path="res://music/Sad-Chill.ogg" type="AudioStream" id=12]
  14. [ext_resource path="res://Security Booth.tscn" type="PackedScene" id=13]
  15. [ext_resource path="res://scripts/Fader.gd" type="Script" id=14]
  16. [ext_resource path="res://scripts/LOADER.gd" type="Script" id=15]
  17. [ext_resource path="res://scripts/FloorPath.gd" type="Script" id=18]
  18. [sub_resource type="PlaneMesh" id=1]
  19. [sub_resource type="SpatialMaterial" id=2]
  20. [sub_resource type="ConcavePolygonShape" id=3]
  21. data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, -1 )
  22. [sub_resource type="Shader" id=4]
  23. code = "shader_type spatial;
  24. void fragment(){
  25. if (cos(UV.x*30.0)>0.8){
  26. EMISSION.rgb = vec3(1,1,1);
  27. }
  28. else{EMISSION.rgb = vec3(0,0,0);
  29. }
  30. }"
  31. [sub_resource type="ShaderMaterial" id=5]
  32. shader = SubResource( 4 )
  33. [sub_resource type="Curve3D" id=6]
  34. _data = {
  35. "points": PoolVector3Array( 0, 0, 0, 0, 0, 0, 1.56442, 0, 0.562141, 0, 0, 0, 0, 0, 0, 1.78186, 0, 2.92422, 0, 0, 0, 0, 0, 0, 2.03759, 0, 4.28392, 0, 0, 0, 0, 0, 0, 2.2801, 0, 5.45225, 0, 0, 0, 0, 0, 0, 2.60685, 0, 6.38369, 0, 0, 0, 0, 0, 0, 2.72133, 0, 7.36929, 0, 0, 0, 0, 0, 0, 2.37589, 0, 8.24181, 0, 0, 0, 0, 0, 0, 2.2968, 0, 8.97753 ),
  36. "tilts": PoolRealArray( 0, 0, 0, 0, 0, 0, 0, 0 )
  37. }
  38. [node name="MAIN" type="Spatial"]
  39. transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0 )
  40. script = ExtResource( 1 )
  41. [node name="Agipoint" type="Spatial" parent="."]
  42. transform = Transform( -0.757321, 0, 0.653043, 0, 1, 0, -0.653043, 0, -0.757321, 0.960469, 0, 5.94148 )
  43. [node name="PriestPoint" type="Spatial" parent="."]
  44. transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.112155, 0, 9.83122 )
  45. [node name="building_segment" parent="." instance=ExtResource( 6 )]
  46. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  47. environment = ExtResource( 4 )
  48. [node name="Player" parent="." instance=ExtResource( 5 )]
  49. [node name="Floor" type="MeshInstance" parent="."]
  50. transform = Transform( 5, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 5.98561 )
  51. mesh = SubResource( 1 )
  52. material/0 = SubResource( 2 )
  53. __meta__ = {
  54. "_edit_lock_": true
  55. }
  56. [node name="StaticBody" type="StaticBody" parent="Floor"]
  57. [node name="CollisionShape" type="CollisionShape" parent="Floor/StaticBody"]
  58. shape = SubResource( 3 )
  59. [node name="StaticBody2" type="StaticBody" parent="Floor"]
  60. transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -1 )
  61. [node name="CollisionShape" type="CollisionShape" parent="Floor/StaticBody2"]
  62. shape = SubResource( 3 )
  63. [node name="StaticBody3" type="StaticBody" parent="Floor"]
  64. transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0.9 )
  65. [node name="CollisionShape" type="CollisionShape" parent="Floor/StaticBody3"]
  66. shape = SubResource( 3 )
  67. [node name="Head" parent="." instance=ExtResource( 9 )]
  68. transform = Transform( -1, 0, -1.50996e-07, 0, 1, 0, 1.50996e-07, 0, -1, 0, 0, 6 )
  69. [node name="sky" type="MeshInstance" parent="."]
  70. transform = Transform( 100, 0, 0, 0, 200, 0, 0, 0, 100, 0.766, 304.268, 5.436 )
  71. mesh = ExtResource( 10 )
  72. material/0 = SubResource( 5 )
  73. script = ExtResource( 11 )
  74. [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
  75. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.35054, 6.14762 )
  76. stream = ExtResource( 12 )
  77. unit_db = -6.465
  78. unit_size = 0.1
  79. autoplay = true
  80. attenuation_filter_db = -50.0
  81. [node name="Bakery" parent="." instance=ExtResource( 8 )]
  82. transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2, 0, 11 )
  83. [node name="Pads1" parent="." instance=ExtResource( 7 )]
  84. [node name="Pads2" parent="." instance=ExtResource( 7 )]
  85. transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -4.523, 0, 5.427 )
  86. [node name="SecurityBooth" parent="." instance=ExtResource( 13 )]
  87. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.5932, 0, 0 )
  88. [node name="Clock" parent="." instance=ExtResource( 2 )]
  89. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.03599, 1.7421, 1.28226 )
  90. [node name="Trajectories" type="Spatial" parent="."]
  91. [node name="SecurityPath1" type="Path" parent="Trajectories"]
  92. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.185233, 0, -0.727172 )
  93. curve = SubResource( 6 )
  94. script = ExtResource( 18 )
  95. [node name="PathFollow" type="PathFollow" parent="Trajectories/SecurityPath1"]
  96. transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 1.5723, 0, 0.647755 )
  97. offset = 0.0859791
  98. rotation_mode = 1
  99. cubic_interp = false
  100. loop = false
  101. [node name="SECURITY" parent="Trajectories/SecurityPath1/PathFollow" instance=ExtResource( 3 )]
  102. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.2, 0, 0 )
  103. [node name="Spatial" type="Spatial" parent="."]
  104. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.25766, 0, 4.88154 )
  105. [node name="Point1" type="Spatial" parent="."]
  106. transform = Transform( 0.999781, 0, -0.020956, 0, 1, 0, 0.020956, 0, 0.999781, 0.377491, 0, 2.47218 )
  107. [node name="Point2" type="Spatial" parent="."]
  108. transform = Transform( -0.993192, 0, 0.116491, 0, 1, 0, -0.116491, 0, -0.993192, -1.36505, 0, 7.95729 )
  109. [node name="Point3" type="Spatial" parent="."]
  110. transform = Transform( -0.993192, 0, 0.116491, 0, 1, 0, -0.116491, 0, -0.993192, -0.16572, 0, 8.96733 )
  111. [node name="TRANSIT1" type="Spatial" parent="."]
  112. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.689893, 0, 3.75216 )
  113. [node name="TRANSIT2" type="Spatial" parent="."]
  114. transform = Transform( -1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.0208523, 0, 7.9356 )
  115. [node name="Camera" type="Camera" parent="."]
  116. transform = Transform( 10, 0, 0, 0, -4.37114e-07, 10, 0, -10, -4.37114e-07, 0, 10.4735, 5.33271 )
  117. [node name="FADER" type="Polygon2D" parent="."]
  118. position = Vector2( 0, 71.0034 )
  119. scale = Vector2( 7.4, 5.01906 )
  120. color = Color( 0, 0, 0, 1 )
  121. polygon = PoolVector2Array( -392.571, -191.411, 196.429, -209.411, 669.837, -208.411, 1173.95, -187.411, 1374.51, -133.154, 1401.51, 675.482, 952.514, 911.325, -178.367, 821.325, -631.711, 580.637, -655.6, 21.0496, -505.91, -84.9504 )
  122. script = ExtResource( 14 )
  123. [node name="LOADER" type="Label" parent="."]
  124. margin_right = 59.0
  125. margin_bottom = 14.0
  126. script = ExtResource( 15 )
  127. __meta__ = {
  128. "_edit_use_anchors_": true
  129. }