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/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/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()