pushed test NPC locomotion
Signed-off-by: qsnow1845 <qrs01@snowtx.com>
This commit is contained in:
parent
2e0b2b76c1
commit
7d72e7bb54
@ -16,6 +16,7 @@ public class Main extends Applet {
|
|||||||
if (start){
|
if (start){
|
||||||
Draw.begin(g);
|
Draw.begin(g);
|
||||||
playerLocomotion(g);
|
playerLocomotion(g);
|
||||||
|
npcLocomotion(g);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Draw.startScreen(g);
|
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){
|
public boolean mouseDown(Event e, int x, int y){
|
||||||
if (startBtn.inside(x,y)){
|
if (startBtn.inside(x,y)){
|
||||||
|
@ -6,7 +6,8 @@ import java.applet.Applet;
|
|||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
|
||||||
public class NPC1 extends Applet {
|
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.setColor(g,colorsTemp.NPC1Body);
|
||||||
Expo.fillRectangle(g, x, 110, x+35, 170);
|
Expo.fillRectangle(g, x, 110, x+35, 170);
|
||||||
Expo.setColor(g,colorsTemp.Tires);
|
Expo.setColor(g,colorsTemp.Tires);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user