2019-05-18 19:35:36 -05:00
|
|
|
package project;
|
|
|
|
|
2019-05-17 15:08:45 -05:00
|
|
|
import java.applet.Applet;
|
|
|
|
import java.awt.*;
|
|
|
|
|
2019-05-18 22:11:42 -05:00
|
|
|
|
2019-05-19 17:07:54 -05:00
|
|
|
public class Main extends Applet {
|
2019-05-20 15:25:25 -05:00
|
|
|
public static boolean start = false;
|
|
|
|
private Rectangle startBtn = new Rectangle(100,100,340,600);
|
|
|
|
|
2019-05-19 17:07:54 -05:00
|
|
|
public void paint(Graphics g){
|
2019-05-21 14:44:31 -05:00
|
|
|
test(g);
|
2019-05-19 17:07:54 -05:00
|
|
|
Expo.drawHeading(g, "Quentin Snow and Alekkai", "Final Project");
|
2019-05-20 15:25:25 -05:00
|
|
|
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
|
|
|
}
|
2019-05-21 14:44:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
public static void test(Graphics g){
|
|
|
|
// put testing code and calls here
|
|
|
|
|
|
|
|
}
|
2019-05-17 15:01:03 -05:00
|
|
|
}
|