Change: Make tick length 27 milliseconds (#10607)

This makes a month last about 60 seconds, allowing the use of real-time units in game.

Co-authored-by: Niels Martin Hansen <nielsm@indvikleren.dk>
This commit is contained in:
Tyler Trahan
2023-04-14 09:50:19 -04:00
committed by GitHub
parent e5af5907ec
commit 8e04cba0c3
2 changed files with 8 additions and 4 deletions

View File

@@ -313,8 +313,12 @@ enum SpriteType : byte {
ST_INVALID = 4, ///< Pseudosprite or other unusable sprite, used only internally
};
/** The number of milliseconds per game tick. */
static const uint MILLISECONDS_PER_TICK = 30;
/**
* The number of milliseconds per game tick.
* The value 27 together with a day length of 74 ticks makes one day 1998 milliseconds, almost exactly 2 seconds.
* With a 2 second day, one standard month is 1 minute, and one standard year is slightly over 12 minutes.
*/
static const uint MILLISECONDS_PER_TICK = 27;
/** Information about the currently used palette. */
struct Palette {