almost done with locomotion
Signed-off-by: qsnow1845 <qrs01@snowtx.com>
This commit is contained in:
parent
a586fd40db
commit
a7ef5d3ded
@ -7,8 +7,8 @@ import java.awt.*;
|
|||||||
public class Main extends Applet {
|
public class Main extends Applet {
|
||||||
public static boolean start = false;
|
public static boolean start = false;
|
||||||
private Rectangle startBtn = new Rectangle(100,100,340,600);
|
private Rectangle startBtn = new Rectangle(100,100,340,600);
|
||||||
private Rectangle Lbtn = new Rectangle(100,100,340,600);
|
private Rectangle Lbtn = new Rectangle(480,220,120,80);
|
||||||
private Rectangle Rbtn = new Rectangle(100,100,340,600);
|
private Rectangle Rbtn = new Rectangle(530,220,120,80);
|
||||||
|
|
||||||
public void paint(Graphics g){
|
public void paint(Graphics g){
|
||||||
test(g);
|
test(g);
|
||||||
@ -31,7 +31,9 @@ public class Main extends Applet {
|
|||||||
start = true;
|
start = true;
|
||||||
repaint();
|
repaint();
|
||||||
}
|
}
|
||||||
if (Lbtn.inside(x,y))
|
if (Lbtn.inside(x,y)){
|
||||||
|
System.out.println("inside lbtn");
|
||||||
|
}
|
||||||
System.out.println(x+" "+y);
|
System.out.println(x+" "+y);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user