示例#1
0
 public GameContext(int maxGameStepsWithoutRender, int gameFPS = 60, int uxFPS = 60)
 {
     GameSeed  = Luck.Reset();
     GameFPS   = gameFPS;
     UxFPS     = uxFPS;
     GameTicks = TICKS_IN_A_SECOND / gameFPS;
     UxTicks   = TICKS_IN_A_SECOND / uxFPS;
     MaxGameStepsWithoutRender = maxGameStepsWithoutRender;
 }
示例#2
0
 public void SetSeed(int seed) => GameSeed = Luck.Reset(seed);