Fries
425bf2ad27
i added more to the main menu, as it has a settings menu now, that stores its files with json. i also changed the font to atkinson hyperlegible and made a BaseMenu class that takes care of the screen scaling for menus. i also refactored the project folder structure to make it more organized.
20 lines
429 B
C#
20 lines
429 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Pong.Scripts.Data;
|
|
|
|
/// <summary>
|
|
/// a structure containing the data of the settings.
|
|
/// </summary>
|
|
public struct Settings
|
|
{
|
|
/// <summary>
|
|
/// the scale of the game. this can be from 1.0 to 2.0
|
|
/// </summary>
|
|
public double Scale;
|
|
|
|
/// <summary>
|
|
/// the default values of settings.
|
|
/// </summary>
|
|
public static Settings Default => new() { Scale = 1.0 };
|
|
}
|