Symbian Games 240x320 (HIGH-QUALITY)

private void updateGame() // Move ball down ballY += 6; if (ballY + BALL_SIZE >= catcherY && ballX + BALL_SIZE > catcherX && ballX < catcherX + CATCHER_W) // Caught! score++; ballX = (int)(Math.random() * (width - BALL_SIZE)); ballY = 20; // Missed if (ballY > height) ballX = (int)(Math.random() * (width - BALL_SIZE)); ballY = 20; score = Math.max(0, score - 1);

protected void paint(Graphics g) // Background g.setColor(0, 0, 0); g.fillRect(0, 0, width, height); symbian games 240x320

// Draw catcher g.setColor(0, 255, 0); g.fillRect(catcherX, catcherY, CATCHER_W, CATCHER_H); private void updateGame() // Move ball down ballY

public void run() { while (running) { repaint(); updateGame(); try Thread.sleep(30); catch (Exception e) {} } } if (ballY + BALL_SIZE &gt