RpgGame
Console Based RPG game in C#
Loading...
Searching...
No Matches
RpgGame.Core.Config Class Reference

Provides global configuration values for the game. More...

Collaboration diagram for RpgGame.Core.Config:

Static Public Attributes

const int WindowWidth = 40
 Width of the main game map in characters.
 
const int WindowHeight = 20
 Height of the main game map in characters.
 
const int TargetFPS = 60
 Target frames per second for the game loop.
 
const int DefaultSpawnX = WindowWidth / 2
 Default horizontal spawn position for the player.
 
const int DefaultSpawnY = WindowHeight / 2
 Default vertical spawn position for the player.
 
const int SidebarWidth = 35
 Width of the sidebar displaying player information and inventory.
 

Detailed Description

Provides global configuration values for the game.

This static class centralizes window, rendering, and default gameplay parameters to avoid hardcoded "magic numbers" throughout the project.

Values are defined as constants because they are compile-time fixed and represent immutable configuration settings.

Member Data Documentation

◆ TargetFPS

const int RpgGame.Core.Config.TargetFPS = 60
static

Target frames per second for the game loop.

Used to approximate frame timing in the console loop.


The documentation for this class was generated from the following file: