diff --git a/Audio/Scary Scream.wav b/Audio/Scary Scream.wav new file mode 100644 index 0000000..afa4aa2 Binary files /dev/null and b/Audio/Scary Scream.wav differ diff --git a/Audio/Scary Scream.wav.import b/Audio/Scary Scream.wav.import new file mode 100644 index 0000000..efdc2b1 --- /dev/null +++ b/Audio/Scary Scream.wav.import @@ -0,0 +1,23 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/Scary Scream.wav-5eddc3df18e74cbb3fb69d0eb4051d5b.sample" + +[deps] + +source_file="res://Audio/Scary Scream.wav" +dest_files=[ "res://.import/Scary Scream.wav-5eddc3df18e74cbb3fb69d0eb4051d5b.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/Audio/Spooky Water Drops.wav b/Audio/Spooky Water Drops.wav new file mode 100644 index 0000000..764ae4c Binary files /dev/null and b/Audio/Spooky Water Drops.wav differ diff --git a/Audio/Spooky Water Drops.wav.import b/Audio/Spooky Water Drops.wav.import new file mode 100644 index 0000000..24f7239 --- /dev/null +++ b/Audio/Spooky Water Drops.wav.import @@ -0,0 +1,23 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/Spooky Water Drops.wav-1bebb79376daf5f65cd5d0a4938e4d40.sample" + +[deps] + +source_file="res://Audio/Spooky Water Drops.wav" +dest_files=[ "res://.import/Spooky Water Drops.wav-1bebb79376daf5f65cd5d0a4938e4d40.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/Audio/UVB-76.ogg b/Audio/UVB-76.ogg new file mode 100644 index 0000000..af98c77 Binary files /dev/null and b/Audio/UVB-76.ogg differ diff --git a/Audio/UVB-76.ogg.import b/Audio/UVB-76.ogg.import new file mode 100644 index 0000000..41e89f8 --- /dev/null +++ b/Audio/UVB-76.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/UVB-76.ogg-eda565c24036b9b4f1def10bcc328b77.oggstr" + +[deps] + +source_file="res://Audio/UVB-76.ogg" +dest_files=[ "res://.import/UVB-76.ogg-eda565c24036b9b4f1def10bcc328b77.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/Audio/music01.wav b/Audio/music01.wav new file mode 100755 index 0000000..93725a7 Binary files /dev/null and b/Audio/music01.wav differ diff --git a/Audio/music01.wav.import b/Audio/music01.wav.import new file mode 100644 index 0000000..59c186a --- /dev/null +++ b/Audio/music01.wav.import @@ -0,0 +1,23 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/music01.wav-991659a267f03a2aa8300804daceb76d.sample" + +[deps] + +source_file="res://Audio/music01.wav" +dest_files=[ "res://.import/music01.wav-991659a267f03a2aa8300804daceb76d.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/HUD.tscn b/HUD.tscn index bdbfaa4..6332776 100644 --- a/HUD.tscn +++ b/HUD.tscn @@ -6,7 +6,7 @@ [ext_resource path="res://Audio/menumusic.ogg" type="AudioStream" id=4] [ext_resource path="res://Options.gd" type="Script" id=5] -[sub_resource type="DynamicFont" id=4] +[sub_resource type="DynamicFont" id=12] size = 19 outline_size = 2 outline_color = Color( 0, 0, 0, 1 ) @@ -15,7 +15,7 @@ use_filter = true font_data = ExtResource( 3 ) [sub_resource type="Theme" id=8] -default_font = SubResource( 4 ) +default_font = SubResource( 12 ) [sub_resource type="Shader" id=6] code = "shader_type canvas_item; diff --git a/Levels/Level01.tscn b/Levels/Level01.tscn index 30fadc0..9c9001d 100644 --- a/Levels/Level01.tscn +++ b/Levels/Level01.tscn @@ -114,7 +114,7 @@ align = 1 wait_time = 3.0 [node name="Floor" type="MeshInstance" parent="."] -transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.239059, 0.211092, -0.192581 ) +transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.239059, 0.150923, -0.192581 ) mesh = SubResource( 13 ) material/0 = ExtResource( 9 ) diff --git a/Levels/Level09.gd b/Levels/Level09.gd index aaceee3..ae319b0 100644 --- a/Levels/Level09.gd +++ b/Levels/Level09.gd @@ -5,7 +5,7 @@ extends Spatial # var a = 2 # var b = "text" var enemycount = 1 -onready var NEXTSCENE = "res://Levels/Level10.tscn" +onready var NEXTSCENE = "res://Scenes/End.tscn" onready var WinMess = $Messages/Win onready var EndTimer = $End diff --git a/Levels/Level09.tscn b/Levels/Level09.tscn index f5423f5..c3ba635 100644 --- a/Levels/Level09.tscn +++ b/Levels/Level09.tscn @@ -1,10 +1,12 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=12 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://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://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8] [sub_resource type="DynamicFont" id=8] @@ -157,6 +159,26 @@ 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 ) +[node name="UVB76" type="AudioStreamPlayer3D" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -93.1999, -7.28051, -104.312 ) +stream = ExtResource( 6 ) +attenuation_model = 2 +unit_db = 80.0 +max_db = 6.0 +autoplay = true +bus = "SFX" + +[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 39.1568, -7.28051, -20.8087 ) +stream = ExtResource( 7 ) +attenuation_model = 2 +unit_db = 80.0 +unit_size = 8.1 +max_db = 6.0 +pitch_scale = 0.86 +autoplay = true +bus = "SFX" + [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"] diff --git a/Scenes/End.tscn b/Scenes/End.tscn new file mode 100644 index 0000000..813e2bc --- /dev/null +++ b/Scenes/End.tscn @@ -0,0 +1,65 @@ +[gd_scene load_steps=7 format=2] + +[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://Spatial.gd" type="Script" id=2] +[ext_resource path="res://Audio/music01.wav" type="AudioStream" id=3] + +[sub_resource type="DynamicFont" id=5] +size = 88 +outline_size = 5 +outline_color = Color( 0, 0, 0, 1 ) +use_filter = true +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=4] +size = 19 +outline_size = 2 +outline_color = Color( 0, 0, 0, 1 ) +use_mipmaps = true +use_filter = true +font_data = ExtResource( 1 ) + +[sub_resource type="Theme" id=6] +default_font = SubResource( 4 ) + +[node name="Spatial" type="Spatial"] +script = ExtResource( 2 ) + +[node name="Control" type="Control" parent="."] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="ColorRect" type="ColorRect" parent="Control"] +margin_right = 1916.0 +margin_bottom = 1084.0 +color = Color( 0.109804, 0.054902, 0.054902, 1 ) + +[node name="Title" type="Label" parent="Control"] +margin_left = 532.0 +margin_top = 353.0 +margin_right = 1414.0 +margin_bottom = 455.0 +custom_fonts/font = SubResource( 5 ) +text = "FIRST PERSON SLAPPER" + +[node name="Level" type="Label" parent="Control"] +margin_left = 493.0 +margin_top = 345.0 +margin_right = 1414.0 +margin_bottom = 526.0 +theme = SubResource( 6 ) +text = "You have been playing" +align = 1 + +[node name="Level2" type="Label" parent="Control"] +margin_left = 493.0 +margin_top = 498.0 +margin_right = 1414.0 +margin_bottom = 526.0 +theme = SubResource( 6 ) +text = "Thank you!" +align = 1 + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 3 ) +autoplay = true diff --git a/Spatial.gd b/Spatial.gd new file mode 100644 index 0000000..611bf75 --- /dev/null +++ b/Spatial.gd @@ -0,0 +1,17 @@ +extends Spatial + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _input(event): + if event is InputEventKey and event.pressed: + get_tree().quit()