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);