Thank you. Your game looks great, and the gameplay feels nice. However. Excuse me when I pressed "Esc - Toggle Full Screen," it didn't function as expected. Instead, it tried to enter full screen mode but then immediately backs out.
I understand you're using the Godot Engine. This is how I would do it in Godot 4. Please, I hope this can be somewhat useful to you. I barely know anything about programming, but I know this function from my experience.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
1. Project... Project Settings... Input Map
"Add New Action" ... "fullscreen" ... Add
+
Feyboard Keys
Esc
2. Copy paste into Main:
func _unhandled_input(event):
if event.is_action_pressed("fullscreen"):
print(DisplayServer.window_get_mode())
match DisplayServer.window_get_mode():
DisplayServer.WINDOW_MODE_FULLSCREEN:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
_:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
3. Done
You also have the option of removing the full screen feature on web. That is also a valid solution.