From 07f2710a21a713f44d6f586602080ee9fbc1b179 Mon Sep 17 00:00:00 2001 From: rom Date: Sun, 25 Apr 2021 16:39:14 +0200 Subject: export --- .gitignore | 2 ++ export_presets.cfg | 25 +++++++++++++++++++++++++ scenes/pause.gd | 4 ++-- scenes/pause.tscn | 7 ++++--- 4 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 export_presets.cfg diff --git a/.gitignore b/.gitignore index e660fd9..4c8b6de 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ bin/ +.vscode/ +build/ diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..4a4da24 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,25 @@ +[preset.0] + +name="Linux/X11" +platform="Linux/X11" +runnable=true +custom_features="" +export_filter="scenes" +export_files=PoolStringArray( "res://scenes/menu.tscn" ) +include_filter="" +exclude_filter="" +export_path="./build/Deeper but Lighter.x86_64" +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +binary_format/64_bits=true +binary_format/embed_pck=false +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true diff --git a/scenes/pause.gd b/scenes/pause.gd index 57ab574..43a2d5b 100644 --- a/scenes/pause.gd +++ b/scenes/pause.gd @@ -6,7 +6,7 @@ onready var backgroud = $Sprite func pause(): pause_menu.visible = true pause_menu.pause_mode = PAUSE_MODE_PROCESS # to be save - # get_tree().paused = true + get_tree().paused = true func _ready(): @@ -15,7 +15,7 @@ func _ready(): func _on_Resume_on_click(): pause_menu.visible = false - # get_tree().paused = false + get_tree().paused = false func _on_Main_Menu_on_click(): diff --git a/scenes/pause.tscn b/scenes/pause.tscn index 32dda9e..5be50dd 100644 --- a/scenes/pause.tscn +++ b/scenes/pause.tscn @@ -9,6 +9,10 @@ pause_mode = 2 script = ExtResource( 2 ) +[node name="Sprite" type="Sprite" parent="."] +modulate = Color( 1, 1, 1, 0.47451 ) +texture = ExtResource( 3 ) + [node name="Resume" parent="." instance=ExtResource( 1 )] pause_mode = 2 position = Vector2( 0, -50 ) @@ -16,9 +20,6 @@ z_index = 1 text = "Resume" fixed_width = 250 -[node name="Sprite" type="Sprite" parent="."] -texture = ExtResource( 3 ) - [node name="Main Menu" parent="." instance=ExtResource( 1 )] pause_mode = 2 position = Vector2( 0, 50 ) -- cgit