Backup added

This commit is contained in:
Noah
2021-09-28 22:10:02 +02:00
parent 9d2c7c9891
commit c3e19db3d3
15 changed files with 726 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package v5.game;
import java.util.Timer;
import java.util.TimerTask;
public class Clock extends Thread{
public static boolean running = true;
public void start(){
Timer t = new Timer();
TimerTask tt = new TimerTask() {
@Override
public void run() {
if (running){
Control.nextGen();
}
}
};
t.scheduleAtFixedRate(tt, 1, 1);
}
}