Level 09 and some spark lights

This commit is contained in:
Victor Turgeon 2022-10-12 21:38:37 -04:00
parent f0ad9fc136
commit 8da5c6e0c2
4 changed files with 153 additions and 4 deletions

View File

@ -185,6 +185,13 @@ script = ExtResource( 12 )
[node name="Timer" type="Timer" parent="Sparks"] [node name="Timer" type="Timer" parent="Sparks"]
autostart = true autostart = true
[node name="OmniLight" type="OmniLight" parent="Sparks"]
transform = Transform( 0.411761, -0.108686, 0.261993, -0.193036, 0.0868354, 0.339407, -0.0596391, -0.190328, 0.0147751, 0.799004, 0.574107, -0.171512 )
light_color = Color( 0.847059, 0.627451, 0.372549, 1 )
light_energy = 5.0
shadow_enabled = true
shadow_color = Color( 0.431373, 0.384314, 0.384314, 1 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"] [connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]

View File

@ -27,4 +27,3 @@ func _on_Enemy_dying():
func _on_Win_timeout(): func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE) get_tree().change_scene(NEXTSCENE)

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=2] [gd_scene load_steps=20 format=2]
[ext_resource path="res://Levels/Level09.gd" type="Script" id=1] [ext_resource path="res://Levels/Level09.gd" type="Script" id=1]
[ext_resource path="res://Audio/mood.ogg" type="AudioStream" id=2] [ext_resource path="res://Audio/mood.ogg" type="AudioStream" id=2]
@ -8,6 +8,10 @@
[ext_resource path="res://Audio/UVB-76.ogg" type="AudioStream" id=6] [ext_resource path="res://Audio/UVB-76.ogg" type="AudioStream" id=6]
[ext_resource path="res://Audio/Spooky Water Drops.wav" type="AudioStream" id=7] [ext_resource path="res://Audio/Spooky Water Drops.wav" type="AudioStream" id=7]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8] [ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://Scenes/InfoScreen.tscn" type="PackedScene" id=9]
[ext_resource path="res://Materials/Brick01_Mat.tres" type="Material" id=10]
[ext_resource path="res://Materials/SquareGrill_Mat.tres" type="Material" id=11]
[ext_resource path="res://Levels/Sparks.gd" type="Script" id=12]
[sub_resource type="DynamicFont" id=8] [sub_resource type="DynamicFont" id=8]
size = 64 size = 64
@ -49,6 +53,24 @@ glow_bloom = 0.02
glow_hdr_threshold = 0.44 glow_hdr_threshold = 0.44
glow_bicubic_upscale = true glow_bicubic_upscale = true
[sub_resource type="SpatialMaterial" id=18]
flags_transparent = true
albedo_color = Color( 0.686275, 0.67451, 0.345098, 0.756863 )
[sub_resource type="QuadMesh" id=19]
material = SubResource( 18 )
size = Vector2( 0.25, 0.25 )
[sub_resource type="Curve" id=20]
min_value = -360.0
max_value = 360.0
_data = [ Vector2( 0.00495049, 184.091 ), 0.0, 167.601, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="Curve" id=21]
min_value = -200.0
max_value = 200.0
_data = [ Vector2( 0, 50.9091 ), 0.0, 0.0, 0, 0, Vector2( 0.960396, -32.7273 ), 0.0, 0.0, 0, 0 ]
[node name="lvl9" type="Spatial"] [node name="lvl9" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 ) script = ExtResource( 1 )
@ -62,179 +84,220 @@ transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -33.6014, -3.704
width = 246.369 width = 246.369
height = 1.0 height = 1.0
depth = 488.763 depth = 488.763
material = ExtResource( 11 )
[node name="CSGBox2" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox2" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 86.2812, 13.2378, 27.87 ) transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 86.2812, 13.2378, 27.87 )
height = 35.4425 height = 35.4425
depth = 53.7257 depth = 53.7257
material = ExtResource( 10 )
[node name="CSGBox3" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox3" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 1.0563, 13.1203, 53.6753 ) transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 1.0563, 13.1203, 53.6753 )
height = 35.4425 height = 35.4425
depth = 168.581 depth = 168.581
material = ExtResource( 10 )
[node name="CSGBox4" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox4" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 32.3225, 13.2378, 13.6267 ) transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 32.3225, 13.2378, 13.6267 )
height = 35.4425 height = 35.4425
depth = 81.3697 depth = 81.3697
material = ExtResource( 10 )
[node name="CSGBox5" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox5" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 75.1722, 13.1203, 0.49144 ) transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 75.1722, 13.1203, 0.49144 )
height = 35.4425 height = 35.4425
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox6" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox6" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 64.1214, 13.2378, -45.2738 ) transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 64.1214, 13.2378, -45.2738 )
height = 35.4425 height = 35.4425
depth = 91.4289 depth = 91.4289
material = ExtResource( 10 )
[node name="CSGBox7" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox7" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 18.7198, 13.1203, -26.5673 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 18.7198, 13.1203, -26.5673 )
height = 35.4425 height = 35.4425
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox8" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox8" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -7.37017, 13.8849, -56.2824 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -7.37017, 13.8849, -56.2824 )
height = 35.4425 height = 35.4425
depth = 78.029 depth = 78.029
material = ExtResource( 10 )
[node name="CSGBox9" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox9" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 32.0479, 13.2378, -114.679 ) transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 32.0479, 13.2378, -114.679 )
height = 91.7009 height = 91.7009
depth = 118.952 depth = 118.952
material = ExtResource( 10 )
[node name="CSGBox10" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox10" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 78.9271, 13.1203, -120.838 ) transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 78.9271, 13.1203, -120.838 )
height = 35.4425 height = 35.4425
depth = 28.3406 depth = 28.3406
material = ExtResource( 10 )
[node name="CSGBox11" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox11" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, 87.3217, 13.2378, -207.544 ) transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, 87.3217, 13.2378, -207.544 )
height = 35.4425 height = 35.4425
depth = 415.34 depth = 415.34
material = ExtResource( 10 )
[node name="CSGBox12" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox12" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 7.58406, 13.1203, -8.48543 ) transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, 7.58406, 13.1203, -8.48543 )
height = 35.4425 height = 35.4425
depth = 53.7257 depth = 53.7257
material = ExtResource( 10 )
[node name="CSGBox13" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox13" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -19.2691, 13.2378, -3.6952 ) transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -19.2691, 13.2378, -3.6952 )
height = 35.4425 height = 35.4425
depth = 54.9621 depth = 54.9621
material = ExtResource( 10 )
[node name="CSGBox14" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox14" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.0299802, -0.99955, -0.000251671, 0.999549, -0.0299803, 0.000244236, -0.000251671, -0.000244236, 0.999998, 81.4903, 31.0136, -62.5089 ) transform = Transform( -0.0299802, -0.99955, -0.000251671, 0.999549, -0.0299803, 0.000244236, -0.000251671, -0.000244236, 0.999998, 81.4903, 31.0136, -62.5089 )
height = 35.4425 height = 35.4425
depth = 122.196 depth = 122.196
material = ExtResource( 10 )
[node name="CSGBox15" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox15" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999972, 0, 0.00720813, 0, 1, 0, -0.00720813, 0, 0.999972, -45.1009, 13.2378, -54.4091 ) transform = Transform( 0.999972, 0, 0.00720813, 0, 1, 0, -0.00720813, 0, 0.999972, -45.1009, 13.2378, -54.4091 )
height = 35.4425 height = 35.4425
depth = 160.32 depth = 160.32
material = ExtResource( 10 )
[node name="CSGBox16" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox16" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -32.2756, 13.1203, 25.6462 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -32.2756, 13.1203, 25.6462 )
height = 42.4404 height = 42.4404
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox17" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox17" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.00376999, -0.999993, -0.000243424, 0.999991, 0.00376994, 0.000244344, -0.000243424, -0.000244344, 0.999998, -32.0056, 33.3066, -15.102 ) transform = Transform( 0.00376999, -0.999993, -0.000243424, 0.999991, 0.00376994, 0.000244344, -0.000243424, -0.000244344, 0.999998, -32.0056, 33.3066, -15.102 )
height = 28.5479 height = 28.5479
depth = 81.3697 depth = 81.3697
material = ExtResource( 10 )
[node name="CSGBox18" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox18" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 63.8532, 13.2378, -179.373 ) transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 63.8532, 13.2378, -179.373 )
height = 35.4425 height = 35.4425
depth = 118.952 depth = 118.952
material = ExtResource( 10 )
[node name="CSGBox19" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox19" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.0148986, -0.999819, 0.011775, 0.953193, 0.0177585, 0.301836, -0.30199, 0.00672695, 0.953285, 82.8387, 13.2378, -179.182 ) transform = Transform( 0.0148986, -0.999819, 0.011775, 0.953193, 0.0177585, 0.301836, -0.30199, 0.00672695, 0.953285, 82.8387, 13.2378, -179.182 )
height = 35.4425 height = 35.4425
depth = 118.952 depth = 118.952
material = ExtResource( 10 )
[node name="CSGBox20" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox20" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.508274, -0.861193, -0.00036854, 0.861193, -0.508275, 0.000210429, -0.00036854, -0.000210429, 0.999997, 2.03001, 12.2476, 50.4871 ) transform = Transform( -0.508274, -0.861193, -0.00036854, 0.861193, -0.508275, 0.000210429, -0.00036854, -0.000210429, 0.999997, 2.03001, 12.2476, 50.4871 )
height = 70.2716 height = 70.2716
depth = 5.64618 depth = 5.64618
material = ExtResource( 10 )
[node name="CSGBox21" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox21" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -7.34159, 13.8849, -173.254 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, -7.34159, 13.8849, -173.254 )
height = 35.4425 height = 35.4425
depth = 78.029 depth = 78.029
material = ExtResource( 10 )
[node name="CSGBox22" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox22" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, -29.7367, 13.8849, -134.25 ) transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, -29.7367, 13.8849, -134.25 )
height = 35.4425 height = 35.4425
depth = 36.7396 depth = 36.7396
material = ExtResource( 10 )
[node name="CSGBox23" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox23" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, 12.7438, 13.8849, -97.4678 ) transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, 12.7438, 13.8849, -97.4678 )
height = 35.4425 height = 35.4425
depth = 36.7396 depth = 36.7396
material = ExtResource( 10 )
[node name="CSGBox24" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox24" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.0407595, -0.999169, -0.000254305, 0.999168, -0.0407596, 0.000244143, -0.000254305, -0.000244143, 0.999998, -2.4395, 27.6925, -114.687 ) transform = Transform( -0.0407595, -0.999169, -0.000254305, 0.999168, -0.0407596, 0.000244143, -0.000254305, -0.000244143, 0.999998, -2.4395, 27.6925, -114.687 )
height = 91.7009 height = 91.7009
depth = 118.952 depth = 118.952
material = ExtResource( 10 )
[node name="CSGBox25" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox25" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.789103, 0, 0.614256, 0, 1, 0, -0.614256, 0, 0.789103, 12.7394, 13.8849, -79.8612 ) transform = Transform( 0.789103, 0, 0.614256, 0, 1, 0, -0.614256, 0, 0.789103, 12.7394, 13.8849, -79.8612 )
height = 35.4425 height = 35.4425
depth = 48.5074 depth = 48.5074
material = ExtResource( 10 )
[node name="CSGBox26" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox26" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.788951, -0.000244336, 0.61445, 0.614425, -0.00881379, -0.788922, 0.00560839, 0.999961, -0.00680352, 12.7382, 13.8849, -74.8757 ) transform = Transform( 0.788951, -0.000244336, 0.61445, 0.614425, -0.00881379, -0.788922, 0.00560839, 0.999961, -0.00680352, 12.7382, 13.8849, -74.8757 )
height = 35.4425 height = 35.4425
depth = 48.5074 depth = 48.5074
material = ExtResource( 10 )
[node name="CSGBox27" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox27" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.789102, 0, 0.614256, 0, 1, 0, -0.614256, 0, 0.789102, -21.7006, 19.6636, -117.714 ) transform = Transform( 0.789102, 0, 0.614256, 0, 1, 0, -0.614256, 0, 0.789102, -21.7006, 19.6636, -117.714 )
height = 18.5102 height = 18.5102
depth = 48.5074 depth = 48.5074
material = ExtResource( 10 )
[node name="CSGBox28" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox28" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, 31.3031, 13.2378, -313.804 ) transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, 31.3031, 13.2378, -313.804 )
height = 35.4425 height = 35.4425
depth = 229.469 depth = 229.469
material = ExtResource( 10 )
[node name="CSGBox29" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox29" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 59.4606, 13.1203, -311.126 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 59.4606, 13.1203, -311.126 )
height = 35.4425 height = 35.4425
depth = 57.6762 depth = 57.6762
material = ExtResource( 10 )
[node name="CSGBox30" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox30" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, -28.6396, 13.1203, -196.995 ) transform = Transform( -0.000453754, 0, 0.999999, 0, 1, 0, -0.999999, 0, -0.000453754, -28.6396, 13.1203, -196.995 )
height = 35.4425 height = 35.4425
depth = 81.4166 depth = 81.4166
material = ExtResource( 10 )
[node name="CSGBox31" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox31" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -68.0095, 13.2378, -67.8662 ) transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -68.0095, 13.2378, -67.8662 )
height = 35.4425 height = 35.4425
depth = 255.49 depth = 255.49
material = ExtResource( 10 )
[node name="CSGBox32" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox32" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000544563, 0.000190083, 0.999997, -0.777923, 0.628357, -0.000543069, -0.628355, -0.777925, -0.00019431, -60.3016, 6.78922, -91.6615 ) transform = Transform( -0.000544563, 0.000190083, 0.999997, -0.777923, 0.628357, -0.000543069, -0.628355, -0.777925, -0.00019431, -60.3016, 6.78922, -91.6615 )
height = 42.4404 height = 42.4404
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox33" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox33" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 60.7576, 13.1203, -427.6 ) transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 60.7576, 13.1203, -427.6 )
height = 35.4425 height = 35.4425
depth = 57.6762 depth = 57.6762
material = ExtResource( 10 )
[node name="CSGBox34" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox34" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, 20.4908, 13.1203, -216.322 ) transform = Transform( -0.000453754, 0, 0.999997, 0, 1, 0, -0.999997, 0, -0.000453754, 20.4908, 13.1203, -216.322 )
height = 42.4404 height = 42.4404
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox35" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox35" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.99987, 0, 0.0159517, 0, 1, 0, -0.0159517, 0, -0.99987, 8.95874, 13.1203, -209.14 ) transform = Transform( -0.99987, 0, 0.0159517, 0, 1, 0, -0.0159517, 0, -0.99987, 8.95874, 13.1203, -209.14 )
height = 42.4404 height = 42.4404
depth = 24.4842 depth = 24.4842
material = ExtResource( 10 )
[node name="CSGBox36" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -7.74627e-05, -0.0107287, -0.99994, 0.999549, -0.0299803, 0.000244236, -0.0299811, -0.999492, 0.0107262, 65.7829, 31.0136, 26.2208 )
height = 55.8191
depth = 80.3182
material = ExtResource( 10 )
[node name="Player" parent="." instance=ExtResource( 5 )] [node name="Player" parent="." instance=ExtResource( 5 )]
transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 61.0243, 21.5903, 29.8235 ) transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 61.0243, 0.556657, 29.8235 )
[node name="Messages" type="Control" parent="."] [node name="Messages" type="Control" parent="."]
margin_right = 40.0 margin_right = 40.0
@ -324,6 +387,78 @@ transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 22.0135,
[node name="Enemy14" parent="." instance=ExtResource( 3 )] [node name="Enemy14" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 22.0135, 57.1242, -200.877 ) transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 22.0135, 57.1242, -200.877 )
[node name="InfoScreen" parent="." instance=ExtResource( 9 )]
transform = Transform( -4.70016, 1.62619, 0.513838, 1.61656, 4.72816, -0.176728, -0.543381, 0, -4.97039, 61.512, 9.71437, 51.0298 )
text = "We are always
WATCHING"
[node name="Sparks" type="CPUParticles" parent="InfoScreen"]
transform = Transform( 0.329409, -0.241295, -0.298196, -0.086949, 0.108544, -0.951642, 0.209595, 0.424258, 0.0738755, 2.02801, -0.953058, -0.22171 )
amount = 12
lifetime = 0.22
explosiveness = 0.27
randomness = 0.84
lifetime_randomness = 0.24
mesh = SubResource( 19 )
emission_shape = 2
emission_box_extents = Vector3( 1, 1, 1 )
flag_align_y = true
flag_rotate_y = true
gravity = Vector3( 0, -5, 0 )
initial_velocity_random = 0.11
angular_velocity_curve = SubResource( 20 )
linear_accel_curve = SubResource( 21 )
radial_accel = 11.01
radial_accel_random = 0.18
angle_random = 0.28
script = ExtResource( 12 )
[node name="Timer" type="Timer" parent="InfoScreen/Sparks"]
autostart = true
[node name="OmniLight" type="OmniLight" parent="InfoScreen/Sparks"]
transform = Transform( 0.411761, -0.108686, 0.261993, -0.193036, 0.0868354, 0.339407, -0.0596391, -0.190328, 0.0147751, 0.799004, 0.574107, -0.171512 )
light_color = Color( 0.847059, 0.627451, 0.372549, 1 )
light_energy = 5.0
shadow_enabled = true
shadow_color = Color( 0.431373, 0.384314, 0.384314, 1 )
[node name="Lost" parent="." instance=ExtResource( 9 )]
transform = Transform( -0.301149, 0, 4.99092, 1.00041, 4.89852, 0.0603638, -4.88963, 1.00223, -0.295037, -42.8982, 17.5822, 10.1577 )
text = "Ar e y o u
LoS t ? .."
[node name="Sparks" type="CPUParticles" parent="Lost"]
transform = Transform( 0.288011, -0.121241, -0.139749, -0.0354828, 0.0505156, -0.987828, 0.0760947, 0.48244, 0.0683139, -1.79, 0.892, 0 )
amount = 12
lifetime = 0.22
explosiveness = 0.27
randomness = 0.84
lifetime_randomness = 0.24
mesh = SubResource( 19 )
emission_shape = 2
emission_box_extents = Vector3( 1, 1, 1 )
flag_align_y = true
flag_rotate_y = true
gravity = Vector3( 0, -5, 0 )
initial_velocity_random = 0.11
angular_velocity_curve = SubResource( 20 )
linear_accel_curve = SubResource( 21 )
radial_accel = 11.01
radial_accel_random = 0.18
angle_random = 0.28
script = ExtResource( 12 )
[node name="Timer" type="Timer" parent="Lost/Sparks"]
autostart = true
[node name="OmniLight" type="OmniLight" parent="Lost/Sparks"]
transform = Transform( 0.411761, -0.108686, 0.261993, -0.193036, 0.0868354, 0.339407, -0.0596391, -0.190328, 0.0147751, 0.799004, 0.574107, -0.171512 )
light_color = Color( 0.847059, 0.627451, 0.372549, 1 )
light_energy = 5.0
shadow_enabled = true
shadow_color = Color( 0.431373, 0.384314, 0.384314, 1 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"] [connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]
@ -339,3 +474,5 @@ transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 22.0135,
[connection signal="dying" from="Enemy12" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy12" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy13" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy13" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy14" to="." method="_on_Enemy_dying"] [connection signal="dying" from="Enemy14" to="." method="_on_Enemy_dying"]
[connection signal="timeout" from="InfoScreen/Sparks/Timer" to="InfoScreen/Sparks" method="_on_Timer_timeout"]
[connection signal="timeout" from="Lost/Sparks/Timer" to="Lost/Sparks" method="_on_Timer_timeout"]

View File

@ -1,6 +1,12 @@
extends CPUParticles extends CPUParticles
onready var light = $OmniLight
func _on_Timer_timeout(): func _on_Timer_timeout():
emitting = !emitting emitting = !emitting
if light:
if light.light_energy > 0 :
light.light_energy = 0
else:
light.light_energy = 5