2024-01-16 13:58:17 +01:00
extends Control
var player : = AudioStreamPlayer . new ( )
2024-01-26 04:20:10 +01:00
var infobox
2024-01-16 13:58:17 +01:00
func _ready ( ) :
Input . set_mouse_mode ( Input . MOUSE_MODE_HIDDEN )
add_child ( player )
$ " BoxContainer/VBoxContainer/Title Screen " . grab_focus ( )
2024-01-26 04:20:10 +01:00
infobox = $ Info
2024-01-16 13:58:17 +01:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process ( delta ) :
pass
func _level ( ) :
# This is like autoloading the scene, only
# it happens after already loading the main scene.
get_tree ( ) . change_scene_to_file ( " res://backgounds/disclaimer.tscn " )
#Global.live = 1
#Global.gamelevel = randi() % 3
#if Global.gamelevel == 0:
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
#elif Global.gamelevel == 1:
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
#else:
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()
func _input ( event ) :
# Mouse in viewport coordinates.
if Input . is_action_just_pressed ( " ui_cancel " ) :
_on_back_pressed ( )
if Input . is_key_pressed ( KEY_X ) || Input . is_joy_button_pressed ( 0 , JOY_BUTTON_X ) :
2024-01-26 04:20:10 +01:00
infobox . set_text ( " " )
2024-01-16 13:58:17 +01:00
player . stop ( )
#print("Mouse Click/Unclick at: ", event.position)
# if highlighted == 1:
# _on_debug_pressed()
# if highlighted == 2:
# _on_exit_pressed()
# else:
# _on_start_pressed()
# elif Input.is_action_pressed("ui_up"):
# focus_next
func _on_back_pressed ( ) :
2024-01-20 11:38:12 +01:00
get_tree ( ) . change_scene_to_file ( " res://levels/ui/soundtest.tscn " )
2024-01-16 13:58:17 +01:00
func _on_title_screen_pressed ( ) :
player . stream = load ( Global . musictracks [ 0 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " RELOADED \n RELOADED THEME \n Midori is now RELOADED " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_disclaimer_settings_stores_pressed ( ) :
player . stream = load ( Global . musictracks [ 1 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n Jellies in the Sea \n A relaxing sea music to prepare you for this explosive Action RPG " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_testrooms_pressed ( ) :
player . stream = load ( Global . musictracks [ 2 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Fearofdark \n Get A Brain Morans \n Meme Music for a meme themed stage. \n You can enter here using Test Milk and \n get something interesting " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_friendly_challenge_pressed ( ) :
player . stream = load ( Global . musictracks [ 3 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " MrGamer \n Oskars Skarmslackare \n Player Piano and Mechanical Drummer makes a great duo \n Centuries pass in the blink of an eye \n Do you feel old with this song? I too " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_school_nursery_pressed ( ) :
player . stream = load ( Global . musictracks [ 4 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " JosSs \n Extra Life \n Do you want an Extra Life? \n You need them " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_overworld_ceres_pressed ( ) :
player . stream = load ( Global . musictracks [ 5 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Ceekayed \n Layers \n Game graphics are made with a lot of texture layers \n merged inside a single canvas " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_boss_fight_ceres_pressed ( ) :
player . stream = load ( Global . musictracks [ 6 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " ko0x \n caramel condition \n Pamela stole your candy using her Kung Fu Powers \n You have a better weapon: Fireballs " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_result_pressed ( ) :
player . stream = load ( Global . musictracks [ 7 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " JosSs \n Xs EdzesSs \n Most players can be confused by \n the ways to earn experience in this game " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_overworld_earth_pressed ( ) :
player . stream = load ( Global . musictracks [ 8 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n Shakeshack Galaxy \n A song composed at Earth made to spread across the Galaxy \n Your father can give you an asteroid to achieve that " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_the_zubmarine_zone_pressed ( ) :
player . stream = load ( Global . musictracks [ 9 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n The Zubmarine Zone \n A militar base fill with Zubmarines and fire weapons \n You can find a lot of Heavy Machine Guns here " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_radioactive_desert_pressed ( ) :
player . stream = load ( Global . musictracks [ 10 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n crammin jammin \n Desert radiation can kill humans instantly \n But you can stay here without issues \n At June 2, 2002 a Half Genie Girl born here \n If you think that this game has an unique humour \n here is the answer " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
2024-01-19 01:58:22 +01:00
func _on_natashas_theme_pressed ( ) :
2024-01-16 13:58:17 +01:00
player . stream = load ( Global . musictracks [ 11 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n The Func \n You are fighting against a Maverick Fairy with a sad past \n and a hate against humans. \n A Lunate Elf like you can change her mind \n because that fairy also has pointy ears " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_dungeon_of_destruction_pressed ( ) :
player . stream = load ( Global . musictracks [ 12 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " xerxes \n Kaveh ' s theme \n The Blacksmith of Destruction gave his name to a former untitled theme \n He can give you the best weapon set from the universe, \n but you must earn them \n The Chosen One has a harder life that normal people " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_final_boss_fight_pressed ( ) :
player . stream = load ( Global . musictracks [ 13 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " ko0x \n zenon \n You trained for this \n It ' s time to shine like Zenon Lights \n and make you final explosion " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_ending_theme_pressed ( ) :
player . stream = load ( Global . musictracks [ 14 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n Milky Way \n We won, but at what cost? " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_credits_1_pressed ( ) :
player . stream = load ( Global . musictracks [ 15 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Funky Fish and raina \n artificial sweetener \n That candy was a fake one? \n Now that you are dead doesn ' t matter " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_credits_2_pressed ( ) :
player . stream = load ( Global . musictracks [ 16 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " tj technoiZ \n too old \n I ' m too old to see my daughter dying " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
func _on_credits_3_pressed ( ) :
player . stream = load ( Global . musictracks [ 17 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " motherchip \n portello \n I said that you are dead? \n Forget it \n This is the true beggining " )
2024-01-16 13:58:17 +01:00
player . play ( 0 )
2024-01-19 01:58:22 +01:00
func _on_the_magic_school_pressed ( ) :
player . stream = load ( Global . musictracks [ 18 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n songbirds playground \n A happy song to forget that Kimberly will pull your ears \n when classes end \n You know, that way to punish naughty elves like you " )
2024-01-19 01:58:22 +01:00
player . play ( 0 )
func _on_deep_forest_pressed ( ) :
player . stream = load ( Global . musictracks [ 19 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " Vince Kaichan \n Gotanda Lights \n This forest is under the effect of quantum ice \n Go further and you will find a frozen lake \n and the origin of that quamtum ice " )
2024-01-19 01:58:22 +01:00
player . play ( 0 )
func _on_boss_fight_earth_pressed ( ) :
player . stream = load ( Global . musictracks [ 20 ] )
2024-01-26 04:20:10 +01:00
infobox . set_text ( " rez-kenet \n unreeeal superhero 3 \n Real superheroes are too mainstream \n You can be somebody better " )
2024-01-19 01:58:22 +01:00
player . play ( 0 )