Changing to network
This commit is contained in:
@@ -2,6 +2,10 @@ package control;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.net.DatagramSocket;
|
||||
import java.net.InetAddress;
|
||||
import java.net.SocketException;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
import javax.swing.Timer;
|
||||
|
||||
@@ -26,20 +30,8 @@ public class GameControl implements JoystickListener, ButtonListener, ActionList
|
||||
this.view = view;
|
||||
this.gsm = gsm;
|
||||
view.setIgnoreRepaint(true);
|
||||
update = new Timer(0,this);
|
||||
update = new Timer(1000/60,this);
|
||||
update.start();
|
||||
// Timer update = new Timer();
|
||||
// update.schedule(new TimerTask() {
|
||||
//
|
||||
// @Override
|
||||
// public void run() {
|
||||
// long currentTime = System.currentTimeMillis();
|
||||
// model.update(currentTime - lastTime);
|
||||
// lastTime = currentTime;
|
||||
// view.repaint();
|
||||
// System.out.println("Test");
|
||||
// }
|
||||
// }, 0,1000/120);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user