diff --git a/Music and Fonts(Misc.)/Credit Music.ogg b/Music and Fonts(Misc.)/Credit Music.ogg new file mode 100644 index 0000000..73f61ca Binary files /dev/null and b/Music and Fonts(Misc.)/Credit Music.ogg differ diff --git a/Music and Fonts(Misc.)/Credit Music.ogg.import b/Music and Fonts(Misc.)/Credit Music.ogg.import new file mode 100644 index 0000000..d027e73 --- /dev/null +++ b/Music and Fonts(Misc.)/Credit Music.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Credit Music.ogg-62f496e6e9dca116cd2c2175cb69ac2c.oggstr" + +[deps] + +source_file="res://Music and Fonts(Misc.)/Credit Music.ogg" +dest_files=[ "res://.import/Credit Music.ogg-62f496e6e9dca116cd2c2175cb69ac2c.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/levels/Campaign/Credits.tscn b/levels/Campaign/Credits.tscn new file mode 100644 index 0000000..61f69ac --- /dev/null +++ b/levels/Campaign/Credits.tscn @@ -0,0 +1,85 @@ +[gd_scene load_steps=6 format=2] + +[ext_resource path="res://Music and Fonts(Misc.)/m5x7.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://art/Black.png" type="Texture" id=2] +[ext_resource path="res://Music and Fonts(Misc.)/Credit Music.ogg" type="AudioStream" id=3] + +[sub_resource type="DynamicFont" id=1] +font_data = ExtResource( 1 ) + +[sub_resource type="Animation" id=2] +resource_name = "Text Scroll" +length = 45.0 +tracks/0/type = "value" +tracks/0/path = NodePath("CanvasLayer/Label:rect_position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 44.7, 44.8 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ Vector2( 30, 177 ), Vector2( 30, -553 ), Vector2( 30, -572 ) ] +} + +[node name="Credits" type="Node"] + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="Sprite" type="Sprite" parent="CanvasLayer"] +texture = ExtResource( 2 ) +centered = false + +[node name="Label" type="Label" parent="CanvasLayer"] +margin_left = 30.0 +margin_top = -572.0 +margin_right = 293.0 +margin_bottom = 17.0 +custom_fonts/font = SubResource( 1 ) +text = "We can't thank you enough for playing our game. This is our first Game Jam/Coding experience, and had loads of fun. So sincerely, thank you. + + + From Diego Lugo [dogtots] + and Logan Gatlin [Tyranus] + + + +Sprite Creator: Logan Gatlin [Tyranus] + +Coders: Diego Lugo [dogtots], + Logan Gatlin [Tyranus] + + +Sources: +Player and Enemy Sprites - Robert [0x72] (https://0x72.itch.io/dungeontileset-ii) + +Inventory Sprites - Robert [0x72] +(https://0x72.itch.io/dungeonui) + +Music - Alexmax +(https://opengameart.org/content/pixelated-music) + +Ambience - JaggedStone +(https://opengameart.org/content/loopable-dungeon-ambience) + +Sound Effects - (https://www.freesfx.co.uk/sfx/lever) + +Sound Effects - Sfxr +(https://www.drpetter.se/project_sfxr.html) + +" +align = 1 +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +autoplay = "Text Scroll" +"anims/Text Scroll" = SubResource( 2 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 3 ) +volume_db = -14.312 +autoplay = true diff --git a/levels/Campaign/Level 1/Level 1.tscn b/levels/Campaign/Level 1/Level 1.tscn index 446fd67..819ee61 100644 --- a/levels/Campaign/Level 1/Level 1.tscn +++ b/levels/Campaign/Level 1/Level 1.tscn @@ -168,6 +168,6 @@ __meta__ = { "_edit_use_anchors_": false } [connection signal="body_entered" from="Leap" to="Timer" method="_on_Leap_body_entered"] -[connection signal="body_entered" from="Leap" to="AnimationPlayer2" method="_on_Leap_body_entered"] [connection signal="body_entered" from="Leap" to="AnimationPlayer" method="_on_Leap_body_entered"] +[connection signal="body_entered" from="Leap" to="AnimationPlayer2" method="_on_Leap_body_entered"] [connection signal="timeout" from="Timer" to="Timer" method="_on_Timer_timeout"] diff --git a/meta/Music.gd b/meta/Music.gd index 2f5347a..0ac9ef6 100644 --- a/meta/Music.gd +++ b/meta/Music.gd @@ -4,7 +4,11 @@ onready var MainMusic: AudioStreamPlayer = $MainMusic onready var Ambience: AudioStreamPlayer = $Ambience func _process(delta): - if not MainMusic.playing: - MainMusic.playing = true - if not Ambience.playing: - Ambience.playing = true + if Player.current_scene == "res://levels/Campaign/Credits.tscn": + MainMusic.playing = false + Ambience.playing = false + else: + if not MainMusic.playing: + MainMusic.playing = true + if not Ambience.playing: + Ambience.playing = true