expoCarGame/src/project/Main.java

36 lines
724 B
Java
Raw Normal View History

package project;
2019-05-17 15:08:45 -05:00
import java.applet.Applet;
import java.awt.*;
public class Main extends Applet {
public static boolean start = false;
private Rectangle startBtn = new Rectangle(100,100,340,600);
public void paint(Graphics g){
test(g);
Expo.drawHeading(g, "Quentin Snow and Alekkai", "Final Project");
if (start){
Draw.begin(g);
}
else{
Draw.startScreen(g);
}
}
public boolean mouseDown(Event e, int x, int y){
if (startBtn.inside(x,y)){
start = true;
repaint();
}
return true;
2019-05-17 15:08:45 -05:00
}
public static void test(Graphics g){
// put testing code and calls here
}
2019-05-17 15:01:03 -05:00
}