我正在学习Java游戏开发,并试图剖析这个游戏循环: final int TICKS_PER_SECOND = 60;
final int SKIP_TICKS我认为这个逻辑试图做/做的(但我不知道如何)基本上是允许游戏更新的次数超过它呈现-因为许多人的计算机将足够快这样做。因此,它允许我们每次渲染更新5次(而循环则< MAX_FRAMESKIP)。但是,现在的时间肯定少于预期的时间,这就是我们想继续更新的条件吗?至于逻辑的下一
/* Write a program that asks the user * point of the counting range and the * of the numbers within that rangeint end;int sum = 0;
Console.WriteLine(" Enter the st