diff --git a/src/sig/events/SpawnEvent.java b/src/sig/events/SpawnEvent.java index bf6d20c..b4a894f 100644 --- a/src/sig/events/SpawnEvent.java +++ b/src/sig/events/SpawnEvent.java @@ -5,6 +5,7 @@ import java.lang.reflect.InvocationTargetException; import sig.RabiClone; import sig.engine.String; import sig.engine.objects.Object; +import sig.map.Tile; public class SpawnEvent implements Event{ @@ -24,7 +25,7 @@ public class SpawnEvent implements Event{ @Override public boolean perform(int x, int y) { try { - RabiClone.OBJ.add((Object)entity.getDeclaredConstructor(new Class[]{double.class,double.class}).newInstance(x,y)); + RabiClone.OBJ.add((Object)entity.getDeclaredConstructor(new Class[]{double.class,double.class}).newInstance(x+Tile.TILE_WIDTH/2,y+Tile.TILE_HEIGHT/2)); } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) { e.printStackTrace(); diff --git a/src/sig/objects/enemies/GreenBun.java b/src/sig/objects/enemies/GreenBun.java index 04e7f2b..95da347 100644 --- a/src/sig/objects/enemies/GreenBun.java +++ b/src/sig/objects/enemies/GreenBun.java @@ -1,8 +1,6 @@ package sig.objects.enemies; import sig.RabiClone; -import sig.engine.AnimatedSprite; -import sig.engine.Panel; import sig.engine.Sprite; import sig.objects.BunnyGirls; import sig.objects.actor.PhysicsObject; diff --git a/src/sig/objects/enemies/YellowBun.java b/src/sig/objects/enemies/YellowBun.java index badd0b1..5281ef9 100644 --- a/src/sig/objects/enemies/YellowBun.java +++ b/src/sig/objects/enemies/YellowBun.java @@ -1,8 +1,6 @@ package sig.objects.enemies; import sig.RabiClone; -import sig.engine.AnimatedSprite; -import sig.engine.Panel; import sig.engine.Sprite; import sig.objects.BunnyGirls; import sig.objects.actor.PhysicsObject;