Jump to content

Godot - Simple Menu Settings Game Example


Christian
 Share

Recommended Posts

  • Superuser

This is a small Godot game that showcases a simple 2D settings menu in a 3D environment. The settings menu includes three user options for changing the game window's width, height, and mode (e.g. full screen or windowed).

 

Settings are retrieved from a file on disk in JSON format. When the "Apply" button is clicked, the current settings are saved to the file on disk.

 

Note - While in game, you can use the escape key to toggle the 2D menu.

 

General Settings
Here's a list of general settings the script uses.

 

  • Default Width - The default screen width. (default 1920)
  • Default Height - The default screen height. (default 1080)
  • Default Windowed - Whether to run windowed mode by default. (default true)
  • Settings Path - A path to the settings file on disk. (default ./settings.json)

 

Images

 

preview01.png

Source Code

Link to comment
Share on other sites

  • The title was changed to Godot - Simple Menu Settings Game Example

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site you agree to the Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.