diff options
| -rw-r--r-- | export_presets.cfg | 116 | ||||
| -rw-r--r-- | project.godot | 1 | ||||
| -rw-r--r-- | scenes/Game.tscn | 6 | ||||
| -rw-r--r-- | scripts/GUI/MainMenu.cs | 1 | ||||
| -rw-r--r-- | scripts/Time/TurnManager.cs | 3 |
5 files changed, 123 insertions, 4 deletions
diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..e5f8db5 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,116 @@ +[preset.0] + +name="Linux" +platform="Linux" +runnable=true +advanced_options=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="build/linux/TheLegendOfGustav.x86_64" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=1 +binary_format/embed_pck=false +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +shader_baker/enabled=false +binary_format/architecture="x86_64" +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="#!/usr/bin/env bash +export DISPLAY=:0 +unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" +\"{temp_dir}/{exe_name}\" {cmd_args}" +ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash +kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\") +rm -rf \"{temp_dir}\"" +dotnet/include_scripts_content=false +dotnet/include_debug_symbols=false +dotnet/embed_build_outputs=false + +[preset.1] + +name="Windows Desktop" +platform="Windows Desktop" +runnable=true +advanced_options=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="build/windows/TheLegendOfGustav.x86_64.exe" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=1 +binary_format/embed_pck=false +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +shader_baker/enabled=false +binary_format/architecture="x86_64" +codesign/enable=false +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PackedStringArray() +application/modify_resources=true +application/icon="" +application/console_wrapper_icon="" +application/icon_interpolation=4 +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" +application/export_angle=0 +application/export_d3d12=0 +application/d3d12_agility_sdk_multiarch=true +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}' +$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}' +$trigger = New-ScheduledTaskTrigger -Once -At 00:00 +$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries +$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings +Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true +Start-ScheduledTask -TaskName godot_remote_debug +while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 } +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue" +ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue +Remove-Item -Recurse -Force '{temp_dir}'" +dotnet/include_scripts_content=false +dotnet/include_debug_symbols=true +dotnet/embed_build_outputs=false diff --git a/project.godot b/project.godot index 96c139a..30b0f6f 100644 --- a/project.godot +++ b/project.godot @@ -118,3 +118,4 @@ open-spellbook={ [rendering] textures/canvas_textures/default_texture_filter=0 +environment/defaults/default_clear_color=Color(0, 0, 0, 1) diff --git a/scenes/Game.tscn b/scenes/Game.tscn index c00bb11..90bf37a 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -46,14 +46,16 @@ script = ExtResource("3_400sg") [node name="GameOverInputHandler" type="Node" parent="InputHandler"] script = ExtResource("4_g4kob") -[node name="InspectInputHandler" type="Node" parent="InputHandler"] +[node name="InspectInputHandler" type="Node" parent="InputHandler" node_paths=PackedStringArray("map")] script = ExtResource("5_g4kob") +map = NodePath("../../Map") [node name="PickupInputHandler" type="Node" parent="InputHandler"] script = ExtResource("10_3xj3m") -[node name="InventoryInputHandler" type="Node" parent="InputHandler"] +[node name="InventoryInputHandler" type="Node" parent="InputHandler" node_paths=PackedStringArray("map")] script = ExtResource("11_mcffj") +map = NodePath("../../Map") [node name="CastSpellInputHandler" type="Node" parent="InputHandler" node_paths=PackedStringArray("map")] script = ExtResource("12_2rd6h") diff --git a/scripts/GUI/MainMenu.cs b/scripts/GUI/MainMenu.cs index 15ccc33..74592c2 100644 --- a/scripts/GUI/MainMenu.cs +++ b/scripts/GUI/MainMenu.cs @@ -30,7 +30,6 @@ public partial class MainMenu : Control private void OnNewGameButtonPressed() { - GD.Print("Signal EMIT!"); EmitSignal(SignalName.GameRequest, false); } diff --git a/scripts/Time/TurnManager.cs b/scripts/Time/TurnManager.cs index 3d55fbb..6c59ca8 100644 --- a/scripts/Time/TurnManager.cs +++ b/scripts/Time/TurnManager.cs @@ -73,9 +73,10 @@ public partial class TurnManager(Map.Map map) : RefCounted // TODO: Isto é feio, lembre-me de mudar isto antes da entrega final. if (action is SpellAction) { - GD.Print(actionResult); SignalBus.Instance.EmitSignal(SignalBus.SignalName.PlayerSpellCast, actionResult); } + } else if (playerActionQueue.Count > 0 && playerActionQueue[0] is EscapeAction esc){ + esc.Perform(); } // Se a ação do jogador for gratuita ou se o jogador ainda possuir energia, |
