26 lines
405 B
Java
26 lines
405 B
Java
package maze_game.graphics;
|
|
|
|
import mainloop.task.IMainloopTask;
|
|
import maze_game.Main;
|
|
|
|
public class GraphicsHandler implements IMainloopTask
|
|
{
|
|
public static int mspf = 1000 / 60;
|
|
|
|
@Override
|
|
public boolean MainLoopDelay(long millis) {
|
|
return millis > mspf;
|
|
}
|
|
|
|
@Override
|
|
public boolean MainLoopRepeat() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public void MainLoopUpdate() {
|
|
Main.window.render();
|
|
}
|
|
|
|
}
|