Touch Screen Games - Java Midp 2.0
class GameCanvas extends Canvas implements Runnable { private int playerX, playerY; private boolean shootRequested; private boolean running;
public void run() { while (running) { updateGame(); repaint(); try Thread.sleep(30); catch (InterruptedException e) {} } } java midp 2.0 touch screen games
public void start() running = true; new Thread(this).start(); public void stop() running = false; private boolean shootRequested


