Buns do not spawn in walls now

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
unknown 2 years ago
parent ad578faad0
commit 8d30600d78
  1. 4
      src/sig/objects/BunnyGirls.java
  2. 2
      src/sig/objects/enemies/BlueBun.java
  3. 2
      src/sig/objects/enemies/GreenBun.java
  4. 2
      src/sig/objects/enemies/RedBun.java
  5. 2
      src/sig/objects/enemies/YellowBun.java

@ -8,13 +8,15 @@ import sig.objects.actor.PhysicsObject;
public class BunnyGirls extends PhysicsObject{
AnimatedSprite walkingSprite;
double lastMoved = 0;
double lastJumped = 0;
boolean moveDir = false;
double moveTimer = 0;
protected BunnyGirls(AnimatedSprite spr, double animationSpd, Panel panel) {
protected BunnyGirls(AnimatedSprite spr,AnimatedSprite walkingSpr, double animationSpd, Panel panel) {
super(spr, animationSpd, panel);
this.walkingSprite=walkingSpr;
}
@Override

@ -8,7 +8,7 @@ import sig.objects.actor.PhysicsObject;
public class BlueBun extends BunnyGirls{
public BlueBun(double x, double y) {
super(Sprite.BLUE_STAND, 6.5, RabiClone.p);
super(Sprite.BLUE_STAND,Sprite.BLUE_WALK, 6.5, RabiClone.p);
setX(x);
setY(y);
setAccelerationLimits(100, 100);

@ -8,7 +8,7 @@ import sig.objects.actor.PhysicsObject;
public class GreenBun extends BunnyGirls{
public GreenBun(double x, double y) {
super(Sprite.GREEN_STAND, 6.5, RabiClone.p);
super(Sprite.GREEN_STAND,Sprite.GREEN_WALK, 6.5, RabiClone.p);
setX(x);
setY(y);
setAccelerationLimits(100, 100);

@ -8,7 +8,7 @@ import sig.objects.actor.PhysicsObject;
public class RedBun extends BunnyGirls{
public RedBun(double x, double y) {
super(Sprite.RED_STAND, 6.5, RabiClone.p);
super(Sprite.RED_STAND,Sprite.RED_WALK, 6.5, RabiClone.p);
setX(x);
setY(y);
setAccelerationLimits(100, 100);

@ -8,7 +8,7 @@ import sig.objects.actor.PhysicsObject;
public class YellowBun extends BunnyGirls{
public YellowBun(double x, double y) {
super(Sprite.YELLOW_STAND, 6.5, RabiClone.p);
super(Sprite.YELLOW_STAND,Sprite.YELLOW_WALK, 6.5, RabiClone.p);
setX(x);
setY(y);
setAccelerationLimits(100, 100);

Loading…
Cancel
Save