From a6ab0c9347e7780f8a6e1408de1ac9605b46140e Mon Sep 17 00:00:00 2001 From: qsnow1845 Date: Wed, 22 May 2019 15:20:06 -0500 Subject: [PATCH] pushed test NPC locomotion again Signed-off-by: qsnow1845 --- src/project/Main.java | 6 ++++++ src/project/Sprites/NPC1.java | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/project/Main.java b/src/project/Main.java index 6e95435..94a2d9c 100644 --- a/src/project/Main.java +++ b/src/project/Main.java @@ -34,6 +34,12 @@ public class Main extends Applet { public static void npcLocomotion(Graphics g){ project.Sprites.NPC1 npc1 = new project.Sprites.NPC1(g); + int v = 70; + int y = 100; + v++; + npc1.make(g,v,y); + + System.out.println(v); } diff --git a/src/project/Sprites/NPC1.java b/src/project/Sprites/NPC1.java index 5e79f77..0d43c62 100644 --- a/src/project/Sprites/NPC1.java +++ b/src/project/Sprites/NPC1.java @@ -7,7 +7,10 @@ import java.awt.*; public class NPC1 extends Applet { public NPC1(Graphics g) { - int x = Expo.random(100,400); + + } + public static void make(Graphics g, int x, int y){ + // int x = Expo.random(100,400); Expo.setColor(g,colorsTemp.NPC1Body); Expo.fillRectangle(g, x, 110, x+35, 170); Expo.setColor(g,colorsTemp.Tires);