Added a start screen and it no longer throws errors
Signed-off-by: officereso <qrs01@snowtx.com>
This commit is contained in:
parent
a5daf9a27a
commit
45d9e7fded
3
.idea/artifacts/Final_jar.xml
generated
3
.idea/artifacts/Final_jar.xml
generated
@ -2,9 +2,6 @@
|
||||
<artifact type="jar" name="Final:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/Final_jar</output-path>
|
||||
<root id="archive" name="Final.jar">
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/src/resources/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
<element id="module-output" name="Final" />
|
||||
</root>
|
||||
</artifact>
|
||||
|
@ -1,11 +0,0 @@
|
||||
package project;
|
||||
|
||||
import java.applet.Applet;
|
||||
import java.awt.*;
|
||||
|
||||
public class Background extends Applet {
|
||||
public static void create(Graphics g){
|
||||
Expo.fillRoundedRectangle(g,100,100,410,500,6);
|
||||
Expo.setColor(g,Expo.gray);
|
||||
}
|
||||
}
|
11
src/project/Colors.java
Normal file
11
src/project/Colors.java
Normal file
@ -0,0 +1,11 @@
|
||||
package project;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class Colors {
|
||||
static final Color roadGrey = new Color(68,68,68);
|
||||
static final Color lineWhite = new Color(235, 235, 235);
|
||||
static final Color lineYellow = new Color(218, 190, 93);
|
||||
static final Color startGreen = new Color(13, 255, 0);
|
||||
static final Color startBlue = new Color(112, 113, 255);
|
||||
}
|
26
src/project/Draw.java
Normal file
26
src/project/Draw.java
Normal file
@ -0,0 +1,26 @@
|
||||
package project;
|
||||
|
||||
import java.applet.Applet;
|
||||
import java.awt.*;
|
||||
|
||||
public class Draw extends Applet {
|
||||
public static void startScreen(Graphics g){
|
||||
|
||||
for(int i=0;i<=20;i++){
|
||||
Expo.setRandomColor(g);
|
||||
Expo.setFont(g,"Default",1,100-i);
|
||||
Expo.drawString(g,"START",100+i*5,200+i*7);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public static void road(Graphics g){
|
||||
Expo.fillRoundedRectangle(g,100,100,410,500,6);
|
||||
Expo.setColor(g,Colors.roadGrey);
|
||||
Expo.fillRoundedRectangle(g,110,110,400,490,6);
|
||||
Expo.setColor(g,Colors.lineWhite);
|
||||
Expo.fillRectangle(g,190,110,200,490);
|
||||
Expo.fillRectangle(g,300,110,310,490);
|
||||
}
|
||||
}
|
@ -4,9 +4,12 @@ import java.applet.Applet;
|
||||
import java.awt.*;
|
||||
|
||||
|
||||
public class Main extends Applet{
|
||||
public static void main(String[] args) {
|
||||
public class Main extends Applet {
|
||||
public void paint(Graphics g){
|
||||
Expo.drawHeading(g, "Quentin Snow and Alekkai", "Final Project");
|
||||
Draw.startScreen(g);
|
||||
// Draw.road(g);
|
||||
// project.Sprites.player.make(g);
|
||||
|
||||
Paint.create(Graphics(g));
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
package project;
|
||||
|
||||
import java.applet.Applet;
|
||||
import java.awt.*;
|
||||
|
||||
public class Paint extends Applet {
|
||||
public static void create(Graphics g) {
|
||||
Expo.drawHeading(g, "Quentin Snow and Alekkai", "Final Project");
|
||||
// Background.create(g);
|
||||
// project.Sprites.player.make(g);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user