我正在用LibGDX开发一个游戏,我想把我的更新函数称为每毫秒。
但我不知道在我的案子里怎么做-
while(gameLoop) {
renderWorld();
}
public void renderWorld() {
// Some rendering code here
if(world.map[mapPos].ID == 9) {
updateWater(mapPos); // This function makes the water animate, but i must put a time limit otherwise it will be too h