Skip to content

Enhancement of Settings

yashwanthg22 edited this page Oct 2, 2024 · 4 revisions

Overview

Enhancing the game settings by adding a notification box that appears whenever any setting is changed, asking, "Are you sure you want to apply the changes?" This confirmation step ensures that players don’t accidentally make unwanted adjustments. Additionally, once any changes are applied, the settings screen automatically exits, streamlining the process and allowing players to return to their gameplay more quickly. These enhancements make the settings experience more intuitive and user-friendly.

Features

Confirmation Dialog:

The applyChanges method creates a Dialog named confirmationDialog that prompts the player with the message, "Are you sure you want to apply these changes?" The dialog has "Cancel" and "Okay" options, where pressing "Okay" confirms and applies the settings, while "Cancel" keeps the current settings.

Automatic Exit:

When the "Okay" button is pressed, the game calls game.setScreen(ScreenType.MAIN_MENU) to exit the settings screen and return to the main menu. The exitMenu method also handles the transition back to the main menu when the "Exit" button is clicked.

Implementation

The enhancements ensure that players have a safeguard against accidental changes while providing a seamless way to return to the game once settings adjustments are confirmed.

Screenshot 2024-10-02 at 10 23 17 AM

Table of Contents

Home

Design

Design Document

Design Choices

Game Wiki

Gameplay

Controls

Game Features

Utilities
Animals
Menus/screens
Character
Map
Weapon
Projectile
Items
Music/sound

User Guide

Starting the game

Game Engine

Getting Started

Entities and Components

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Enhancement of Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally