pushed test NPC locomotion

Signed-off-by: qsnow1845 <qrs01@snowtx.com>
This commit is contained in:
qsnow1845 2019-05-22 15:08:40 -05:00
parent 2e0b2b76c1
commit 7d72e7bb54
2 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@ public class Main extends Applet {
if (start){
Draw.begin(g);
playerLocomotion(g);
npcLocomotion(g);
}
else{
Draw.startScreen(g);
@ -31,6 +32,10 @@ public class Main extends Applet {
}
}
public static void npcLocomotion(Graphics g){
project.Sprites.NPC1 npc1 = new project.Sprites.NPC1(g);
}
public boolean mouseDown(Event e, int x, int y){
if (startBtn.inside(x,y)){

View File

@ -6,7 +6,8 @@ import java.applet.Applet;
import java.awt.*;
public class NPC1 extends Applet {
public static void make(Graphics g, int x) {
public NPC1(Graphics g) {
int x = Expo.random(100,400);
Expo.setColor(g,colorsTemp.NPC1Body);
Expo.fillRectangle(g, x, 110, x+35, 170);
Expo.setColor(g,colorsTemp.Tires);