almost done with locomotion

Signed-off-by: qsnow1845 <qrs01@snowtx.com>
This commit is contained in:
qsnow1845 2019-05-21 15:25:21 -05:00
parent a586fd40db
commit a7ef5d3ded

View File

@ -7,8 +7,8 @@ import java.awt.*;
public class Main extends Applet {
public static boolean start = false;
private Rectangle startBtn = new Rectangle(100,100,340,600);
private Rectangle Lbtn = new Rectangle(100,100,340,600);
private Rectangle Rbtn = new Rectangle(100,100,340,600);
private Rectangle Lbtn = new Rectangle(480,220,120,80);
private Rectangle Rbtn = new Rectangle(530,220,120,80);
public void paint(Graphics g){
test(g);
@ -31,7 +31,9 @@ public class Main extends Applet {
start = true;
repaint();
}
if (Lbtn.inside(x,y))
if (Lbtn.inside(x,y)){
System.out.println("inside lbtn");
}
System.out.println(x+" "+y);
return true;
}