This commit is contained in:
Victor Turgeon 2022-10-12 17:53:51 -04:00
commit f3e2e4040f
13 changed files with 770 additions and 7 deletions

View File

@ -86,8 +86,8 @@ width = 22.1248
depth = 20.0379
[node name="CSGBox7" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.00786304, -0.0784376, -0.996885, 0.513185, -0.855306, 0.0713453, -0.858242, -0.512147, 0.0335276, 0.126175, 26.3049, -10.5494 )
width = 22.1248
transform = Transform( 0.00786304, -0.0784375, -0.996885, 0.513185, -0.855306, 0.0713453, -0.858241, -0.512147, 0.0335276, 0.125876, 24.6812, -9.32691 )
width = 40.3216
depth = 20.0379
[node name="CSGBox8" type="CSGBox" parent="CSGCombiner"]

View File

@ -104,7 +104,7 @@ margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 6 )
text = "You're Winner!"
text = "You're safe."
[node name="End" type="Timer" parent="."]
wait_time = 3.0

28
Levels/Level07.gd Normal file
View File

@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 3
onready var NEXTSCENE = "res://Levels/Level08.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)

178
Levels/Level07.tscn Normal file
View File

@ -0,0 +1,178 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Levels/Level07.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=6]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://Audio/DiJazz.ogg" type="AudioStream" id=9]
[sub_resource type="DynamicFont" id=8]
size = 64
outline_size = 4
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="PanoramaSky" id=13]
panorama = ExtResource( 6 )
[sub_resource type="Environment" id=14]
background_mode = 2
background_sky = SubResource( 13 )
ambient_light_energy = 0.5
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
fog_sun_amount = 1.0
fog_depth_begin = 98.8
fog_depth_end = 1444.5
fog_depth_curve = 0.466516
fog_transmit_enabled = true
fog_transmit_curve = 0.659754
fog_height_enabled = true
fog_height_min = 148.2
fog_height_max = -48.0
fog_height_curve = 4.59481
ssao_radius = 8.1
ssao_intensity = 4.3
ssao_radius2 = 40.7
ssao_intensity2 = 14.6
ssao_bias = 0.059
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
glow_enabled = true
glow_intensity = 1.86
glow_strength = 0.87
glow_bloom = 0.02
glow_hdr_threshold = 0.44
glow_bicubic_upscale = true
[node name="lvl7" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 )
[node name="CSGCombiner" type="CSGCombiner" parent="."]
transform = Transform( 1, 0, 0.000244346, 0, 1, 0, -0.000244346, 0, 1, 0, 0, 0 )
use_collision = true
[node name="CSGBox" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 12.7323, 0, 3.83593 )
width = 54.8806
height = 4.26933
depth = 135.006
[node name="CSGTorus" type="CSGTorus" parent="CSGCombiner"]
transform = Transform( -0.0130023, 0.999914, -0.000247523, -0.999915, -0.0130022, -0.000244325, -0.000247523, 0.000244325, 0.999999, -14.7742, 7.28439, 53.2558 )
inner_radius = 4.02972
outer_radius = 10.1934
[node name="CSGTorus2" type="CSGTorus" parent="CSGCombiner"]
transform = Transform( -0.0130023, 0.999914, -0.000247523, -0.999915, -0.0130022, -0.000244325, -0.000247522, 0.000244325, 0.999999, -14.7641, 7.28439, 11.7923 )
inner_radius = 4.02972
outer_radius = 10.1934
[node name="CSGTorus3" type="CSGTorus" parent="CSGCombiner"]
transform = Transform( -0.0130023, 0.999914, -0.000247523, -0.999915, -0.0130022, -0.000244325, -0.000247522, 0.000244325, 0.999999, -14.7511, 7.28439, -41.2553 )
inner_radius = 4.02972
outer_radius = 10.1934
[node name="CSGBox2" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -58.5244, 3.43431, -30.5957 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGBox3" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -56.8637, 3.43431, -49.2217 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGBox4" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -58.5324, 3.43431, 2.3445 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGBox5" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -57.2992, 3.34029, 20.4663 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGBox6" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -57.3053, 3.34029, 45.2067 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGBox7" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -57.3096, 3.34029, 63.0448 )
width = 87.7098
height = 69.0626
depth = 3.49386
[node name="CSGSphere" type="CSGSphere" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -61.1579, 7.67452, 53.7674 )
radius = 2.35474
[node name="Player" parent="." instance=ExtResource( 5 )]
transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 37.763, 21.5903, 3.17083 )
[node name="Messages" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="Win" type="Label" parent="Messages"]
visible = false
margin_left = 775.0
margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 8 )
text = "You're Winner!"
[node name="End" type="Timer" parent="."]
wait_time = 3.0
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
volume_db = -3.0
bus = "Music"
[node name="Enemy" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 4.0267, 7.51623, -40.9597 )
[node name="Enemy2" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, -66.0945, 3.70733, 12.6761 )
[node name="Enemy3" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, -68.9686, 3.70733, -41.2269 )
[node name="Enemy4" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 12.7431, 6.4701, 11.6252 )
[node name="Enemy5" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 12.7431, 6.38523, 51.3889 )
[node name="Enemy6" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 12.7431, 7.66671, -62.5084 )
[node name="Sun" type="DirectionalLight" parent="."]
transform = Transform( 0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 7.99925, 6, 7.97141 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 14 )
[node name="CSGCylinder" type="CSGCylinder" parent="."]
transform = Transform( 0.0250777, 0.999685, 6.12765e-06, -0.999685, 0.0250778, -0.000244269, -0.000244346, 0, 0.999999, -14.6573, 8.23895, -40.7858 )
radius = 6.51179
height = 1.13578
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy3" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy4" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy5" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy6" to="." method="_on_Enemy_dying"]

28
Levels/Level08.gd Normal file
View File

@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 1
onready var NEXTSCENE = "res://Levels/Level09.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)

99
Levels/Level08.tscn Normal file
View File

@ -0,0 +1,99 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Levels/Level08.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=6]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://Audio/DiJazz.ogg" type="AudioStream" id=9]
[sub_resource type="DynamicFont" id=8]
size = 64
outline_size = 4
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="PanoramaSky" id=13]
panorama = ExtResource( 6 )
[sub_resource type="Environment" id=14]
background_mode = 2
background_sky = SubResource( 13 )
ambient_light_energy = 0.5
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
fog_sun_amount = 1.0
fog_depth_begin = 98.8
fog_depth_end = 1444.5
fog_depth_curve = 0.466516
fog_transmit_enabled = true
fog_transmit_curve = 0.659754
fog_height_enabled = true
fog_height_min = 148.2
fog_height_max = -48.0
fog_height_curve = 4.59481
ssao_radius = 8.1
ssao_intensity = 4.3
ssao_radius2 = 40.7
ssao_intensity2 = 14.6
ssao_bias = 0.059
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
glow_enabled = true
glow_intensity = 1.86
glow_strength = 0.87
glow_bloom = 0.02
glow_hdr_threshold = 0.44
glow_bicubic_upscale = true
[node name="lvl8" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 )
[node name="CSGCombiner" type="CSGCombiner" parent="."]
transform = Transform( 1, 0, 0.000244346, 0, 1, 0, -0.000244346, 0, 1, 0, 0, 0 )
use_collision = true
[node name="CSGCylinder" type="CSGCylinder" parent="CSGCombiner"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -22.7915, 0 )
[node name="Player" parent="." instance=ExtResource( 5 )]
transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 0, 34.0323, 0 )
[node name="Messages" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="Win" type="Label" parent="Messages"]
visible = false
margin_left = 775.0
margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 8 )
text = "You're Winner!"
[node name="End" type="Timer" parent="."]
wait_time = 3.0
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
volume_db = -3.0
bus = "Music"
[node name="Enemy" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 0, -15.2658, 0 )
[node name="Enemy2" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 0, 8.38352, 72.9737 )
[node name="Sun" type="DirectionalLight" parent="."]
transform = Transform( 0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 7.99925, 6, 7.97141 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 14 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]

28
Levels/Level09.gd Normal file
View File

@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 1
onready var NEXTSCENE = "res://Levels/Level10.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)

162
Levels/Level09.tscn Normal file
View File

@ -0,0 +1,162 @@
[gd_scene load_steps=10 format=2]
[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://Scenes/Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://AllSkyFree_Skyboxes/Deep Dusk Equirect.png" type="Texture" id=4]
[ext_resource path="res://Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[sub_resource type="DynamicFont" id=8]
size = 64
outline_size = 4
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="PanoramaSky" id=13]
panorama = ExtResource( 4 )
[sub_resource type="Environment" id=14]
background_mode = 2
background_sky = SubResource( 13 )
ambient_light_energy = 0.5
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
fog_sun_amount = 1.0
fog_depth_begin = 98.8
fog_depth_end = 1444.5
fog_depth_curve = 0.466516
fog_transmit_enabled = true
fog_transmit_curve = 0.659754
fog_height_enabled = true
fog_height_min = 148.2
fog_height_max = -48.0
fog_height_curve = 4.59481
ssao_radius = 8.1
ssao_intensity = 4.3
ssao_radius2 = 40.7
ssao_intensity2 = 14.6
ssao_bias = 0.059
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
glow_enabled = true
glow_intensity = 1.86
glow_strength = 0.87
glow_bloom = 0.02
glow_hdr_threshold = 0.44
glow_bicubic_upscale = true
[node name="lvl9" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 )
[node name="CSGCombiner" type="CSGCombiner" parent="."]
transform = Transform( 1, 0, 0.000244346, 0, 1, 0, -0.000244346, 0, 1, 0, 0, 0 )
use_collision = true
[node name="CSGBox" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -400.676, -3.7047, -436.227 )
width = 1000.0
height = 1.0
depth = 1000.0
[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 )
height = 35.4425
depth = 53.7257
[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 )
height = 35.4425
depth = 168.581
[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 )
height = 35.4425
depth = 81.3697
[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 )
height = 35.4425
depth = 24.4842
[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 )
height = 35.4425
depth = 91.4289
[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 )
height = 35.4425
depth = 24.4842
[node name="CSGBox8" type="CSGBox" parent="CSGCombiner"]
transform = Transform( -0.000453754, 0, 0.999998, 0, 1, 0, -0.999998, 0, -0.000453754, 18.7267, 13.1203, -54.722 )
height = 35.4425
depth = 24.4842
[node name="CSGBox9" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, 32.0407, 13.2378, -85.3592 )
height = 35.4425
depth = 64.0893
[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 )
height = 35.4425
depth = 28.3406
[node name="CSGBox11" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, 87.285, 13.2378, -57.5419 )
height = 35.4425
depth = 123.512
[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 )
height = 35.4425
depth = 53.7257
[node name="CSGBox13" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 0.999999, 0, 0, 0, 1, 0, 0, 0, 0.999999, -19.2733, 13.2378, 13.6141 )
height = 35.4425
depth = 43.0213
[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 )
[node name="Messages" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="Win" type="Label" parent="Messages"]
visible = false
margin_left = 775.0
margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 8 )
text = "You're Winner!"
[node name="End" type="Timer" parent="."]
wait_time = 3.0
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
volume_db = -3.0
bus = "Music"
[node name="Enemy" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 4.0267, 2.52333, -18.5969 )
[node name="Sun" type="DirectionalLight" parent="."]
transform = Transform( 0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 7.99925, 6, 7.97141 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 14 )
[node name="Enemy2" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 16.6179, 19.204, -18.5969 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]

28
Levels/Level10.gd Normal file
View File

@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 3
onready var NEXTSCENE = "res://Levels/Level11.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)

92
Levels/Level10.tscn Normal file
View File

@ -0,0 +1,92 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Levels/Level10.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=6]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://Audio/DiJazz.ogg" type="AudioStream" id=9]
[sub_resource type="DynamicFont" id=8]
size = 64
outline_size = 4
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="PanoramaSky" id=13]
panorama = ExtResource( 6 )
[sub_resource type="Environment" id=14]
background_mode = 2
background_sky = SubResource( 13 )
ambient_light_energy = 0.5
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
fog_sun_amount = 1.0
fog_depth_begin = 98.8
fog_depth_end = 1444.5
fog_depth_curve = 0.466516
fog_transmit_enabled = true
fog_transmit_curve = 0.659754
fog_height_enabled = true
fog_height_min = 148.2
fog_height_max = -48.0
fog_height_curve = 4.59481
ssao_radius = 8.1
ssao_intensity = 4.3
ssao_radius2 = 40.7
ssao_intensity2 = 14.6
ssao_bias = 0.059
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
glow_enabled = true
glow_intensity = 1.86
glow_strength = 0.87
glow_bloom = 0.02
glow_hdr_threshold = 0.44
glow_bicubic_upscale = true
[node name="lvl10" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 )
[node name="CSGCombiner" type="CSGCombiner" parent="."]
transform = Transform( 1, 0, 0.000244346, 0, 1, 0, -0.000244346, 0, 1, 0, 0, 0 )
use_collision = true
[node name="Player" parent="." instance=ExtResource( 5 )]
transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 37.763, 21.5903, 3.17083 )
[node name="Messages" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="Win" type="Label" parent="Messages"]
visible = false
margin_left = 775.0
margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 8 )
text = "You're Winner!"
[node name="End" type="Timer" parent="."]
wait_time = 3.0
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
volume_db = -3.0
bus = "Music"
[node name="Enemy" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 4.0267, 7.51623, -40.9597 )
[node name="Sun" type="DirectionalLight" parent="."]
transform = Transform( 0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 7.99925, 6, 7.97141 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 14 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]

28
Levels/Level11.gd Normal file
View File

@ -0,0 +1,28 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var enemycount = 3
onready var NEXTSCENE = "res://End.tscn"
onready var WinMess = $Messages/Win
onready var EndTimer = $End
onready var HUD = $"Player/HUD/MenuLayer/Start"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _on_Enemy_dying():
enemycount -= 1
if enemycount == 0:
WinMess.show()
EndTimer.start()
func _on_Win_timeout():
get_tree().change_scene(NEXTSCENE)

92
Levels/Level11.tscn Normal file
View File

@ -0,0 +1,92 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Levels/Level11.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=6]
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
[ext_resource path="res://Audio/DiJazz.ogg" type="AudioStream" id=9]
[sub_resource type="DynamicFont" id=8]
size = 64
outline_size = 4
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="PanoramaSky" id=13]
panorama = ExtResource( 6 )
[sub_resource type="Environment" id=14]
background_mode = 2
background_sky = SubResource( 13 )
ambient_light_energy = 0.5
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
fog_sun_amount = 1.0
fog_depth_begin = 98.8
fog_depth_end = 1444.5
fog_depth_curve = 0.466516
fog_transmit_enabled = true
fog_transmit_curve = 0.659754
fog_height_enabled = true
fog_height_min = 148.2
fog_height_max = -48.0
fog_height_curve = 4.59481
ssao_radius = 8.1
ssao_intensity = 4.3
ssao_radius2 = 40.7
ssao_intensity2 = 14.6
ssao_bias = 0.059
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
glow_enabled = true
glow_intensity = 1.86
glow_strength = 0.87
glow_bloom = 0.02
glow_hdr_threshold = 0.44
glow_bicubic_upscale = true
[node name="lvl11" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.990751, 0 )
script = ExtResource( 1 )
[node name="CSGCombiner" type="CSGCombiner" parent="."]
transform = Transform( 1, 0, 0.000244346, 0, 1, 0, -0.000244346, 0, 1, 0, 0, 0 )
use_collision = true
[node name="Player" parent="." instance=ExtResource( 5 )]
transform = Transform( -0.997569, 0, -0.0696868, 0, 1, 0, 0.0696868, 0, -0.997569, 37.763, 21.5903, 3.17083 )
[node name="Messages" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="Win" type="Label" parent="Messages"]
visible = false
margin_left = 775.0
margin_top = 469.0
margin_right = 1187.0
margin_bottom = 627.0
custom_fonts/font = SubResource( 8 )
text = "You're Winner!"
[node name="End" type="Timer" parent="."]
wait_time = 3.0
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
volume_db = -3.0
bus = "Music"
[node name="Enemy" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 4.0267, 7.51623, -40.9597 )
[node name="Sun" type="DirectionalLight" parent="."]
transform = Transform( 0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 7.99925, 6, 7.97141 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 14 )
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]

View File

@ -14,10 +14,10 @@ onready var Levels = {
"lvl2": "Level 2 - Something in the way...",
"lvl3": "Level 3 - But not too straight.",
"lvl4": "Level 4 - Memento Mori.",
"lvl5": "Level 5 - ",
"lvl6": "Level 6 - Remain calm.",
"lvl7": "Level 7 - ",
"lvl8": "Level 8 - ",
"lvl5": "Level 5 - Hide and Slap.",
"lvl6": "Level 6 - Please remain calm.",
"lvl7": "Level 7 - Measure twice, slap once.",
"lvl8": "Level 8 - This is getting ridiculous!",
"lvl9": "Level 9 - ",
"lvl10": "Level 10 - ",
"lvl11": "Level 11 - I believe in a thing called BONK!",