Follow bouncing ball Game coding
0
comments
Posted by
Unknown
on
05:12
public class Bounce extends Applet implements Runnable {
private Thread ticker;
private boolean running = false;
public void run () {
while (running) {
repaint();
public synchronized void start () ['
i f (ticker == null I ~ ! ticker.isAlive()) i
running ° true;
ticker = new Thread(this);
private Thread ticker;
private boolean running = false;
public void run () {
while (running) {
repaint();
public synchronized void start () ['
i f (ticker == null I ~ ! ticker.isAlive()) i
running ° true;
ticker = new Thread(this);
Subscribe to:
Posts
(
Atom
)
Comment Form is loading comments...