Test commit

This commit is contained in:
apeterescam1982 2019-05-20 15:20:48 -05:00
parent 45d9e7fded
commit ea02e79a56
4 changed files with 24 additions and 6 deletions

View File

@ -8,4 +8,5 @@ public class Colors {
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);
static final Color playerBody = new Color(247, 17, 17);
}

View File

@ -7,9 +7,9 @@ import java.awt.*;
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);
//Draw.startScreen(g);
//Draw.road(g);
project.Sprites.player.make(g);
}
}

View File

@ -0,0 +1,13 @@
package project.Sprites;
import java.awt.*;
public class colorsTemp {
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);
static final Color playerBody = new Color(247, 17, 17);
static final Color Tires = new Color(0, 0, 0);
}

View File

@ -1,12 +1,16 @@
package project.Sprites;
import project.Colors;
import project.Expo;
import java.applet.Applet;
import java.awt.*;
public class player extends Applet {
public static void make(Graphics g){
Expo.fillRectangle(g,100,100,125,150);
Expo.fillRectangle(g,105,110,95,120);
public static void make(Graphics g) {
Expo.setColor(g,colorsTemp.playerBody);
Expo.fillRectangle(g, 100, 100, 135, 160);
Expo.setColor(g,colorsTemp.Tires);
Expo.fillRectangle(g, 105, 108, 90, 128);
Expo.fillRectangle(g, 105, 108, 90, 128);
}
}