Implement new setter strategies for enemy-controlled characters.

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent 4e0aaca35a
commit 1de74138ac
  1. 20
      src/sig/objects/Erinoah.java
  2. 21
      src/sig/objects/enemies/BlueBun.java
  3. 21
      src/sig/objects/enemies/GreenBun.java
  4. 21
      src/sig/objects/enemies/RedBun.java
  5. 21
      src/sig/objects/enemies/YellowBun.java

@ -17,16 +17,16 @@ public class Erinoah extends PhysicsObject{
super(Sprite.ERINOAH,6.5,RabiClone.p); super(Sprite.ERINOAH,6.5,RabiClone.p);
setX(x); setX(x);
setY(y); setY(y);
setAccelerationLimits(100, 100); setAccelerationLimits_UseDefaultStrategy();
setVelocityLimits(500, 500); setVelocityLimits_UseHalfStrategy(500, 500);
setGroundDrag(2000); setGroundDrag_UseDefaultStrategy();
setGroundFriction(PhysicsObject.GROUND_FRICTION); setGroundFriction_UseDefaultStrategy();
setAirDrag(800); setAirDrag_UseCopyStrategy(800);
setAirFriction(180); setAirFriction_UseDefaultStrategy();
setSlidingVelocity(164); setSlidingVelocity_UseDefaultStrategy();
setSlidingAcceleration(120); setSlidingAcceleration_UseDefaultStrategy();
setJumpVelocity(PhysicsObject.JUMP_VELOCITY); setJumpVelocity_UseDefaultStrategy();
setGravity(450); setGravity_UseHalfStrategy(450);
} }
@Override @Override

@ -3,7 +3,6 @@ package sig.objects.enemies;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Sprite; import sig.engine.Sprite;
import sig.objects.BunnyGirls; import sig.objects.BunnyGirls;
import sig.objects.actor.PhysicsObject;
public class BlueBun extends BunnyGirls{ public class BlueBun extends BunnyGirls{
@ -11,16 +10,16 @@ public class BlueBun extends BunnyGirls{
super(Sprite.BLUE_STAND,Sprite.BLUE_WALK, 6.5, RabiClone.p); super(Sprite.BLUE_STAND,Sprite.BLUE_WALK, 6.5, RabiClone.p);
setX(x); setX(x);
setY(y); setY(y);
setAccelerationLimits(100, 100); setAccelerationLimits_UseDefaultStrategy();
setVelocityLimits(500, 500); setVelocityLimits_UseDefaultStrategy();
setGroundDrag(2000); setGroundDrag_UseDefaultStrategy();
setGroundFriction(PhysicsObject.GROUND_FRICTION); setGroundFriction_UseDefaultStrategy();
setAirDrag(800); setAirDrag_UseDefaultStrategy();
setAirFriction(180); setAirFriction_UseDefaultStrategy();
setSlidingVelocity(164); setSlidingVelocity_UseDefaultStrategy();
setSlidingAcceleration(120); setSlidingAcceleration_UseDefaultStrategy();
setJumpVelocity(PhysicsObject.JUMP_VELOCITY); setJumpVelocity_UseDefaultStrategy();
setGravity(950); setGravity_UseHalfStrategy(950);
} }

@ -3,7 +3,6 @@ package sig.objects.enemies;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Sprite; import sig.engine.Sprite;
import sig.objects.BunnyGirls; import sig.objects.BunnyGirls;
import sig.objects.actor.PhysicsObject;
public class GreenBun extends BunnyGirls{ public class GreenBun extends BunnyGirls{
@ -11,16 +10,16 @@ public class GreenBun extends BunnyGirls{
super(Sprite.GREEN_STAND,Sprite.GREEN_WALK, 6.5, RabiClone.p); super(Sprite.GREEN_STAND,Sprite.GREEN_WALK, 6.5, RabiClone.p);
setX(x); setX(x);
setY(y); setY(y);
setAccelerationLimits(100, 100); setAccelerationLimits_UseDefaultStrategy();
setVelocityLimits(500, 500); setVelocityLimits_UseDefaultStrategy();
setGroundDrag(2000); setGroundDrag_UseDefaultStrategy();
setGroundFriction(PhysicsObject.GROUND_FRICTION); setGroundFriction_UseDefaultStrategy();
setAirDrag(800); setAirDrag_UseDefaultStrategy();
setAirFriction(180); setAirFriction_UseDefaultStrategy();
setSlidingVelocity(164); setSlidingVelocity_UseDefaultStrategy();
setSlidingAcceleration(120); setSlidingAcceleration_UseDefaultStrategy();
setJumpVelocity(PhysicsObject.JUMP_VELOCITY); setJumpVelocity_UseDefaultStrategy();
setGravity(1550); setGravity_UseHalfStrategy(1550);
} }

@ -3,7 +3,6 @@ package sig.objects.enemies;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Sprite; import sig.engine.Sprite;
import sig.objects.BunnyGirls; import sig.objects.BunnyGirls;
import sig.objects.actor.PhysicsObject;
public class RedBun extends BunnyGirls{ public class RedBun extends BunnyGirls{
@ -11,16 +10,16 @@ public class RedBun extends BunnyGirls{
super(Sprite.RED_STAND,Sprite.RED_WALK, 6.5, RabiClone.p); super(Sprite.RED_STAND,Sprite.RED_WALK, 6.5, RabiClone.p);
setX(x); setX(x);
setY(y); setY(y);
setAccelerationLimits(100, 100); setAccelerationLimits_UseDefaultStrategy();
setVelocityLimits(500, 500); setVelocityLimits_UseDefaultStrategy();
setGroundDrag(2000); setGroundDrag_UseDefaultStrategy();
setGroundFriction(PhysicsObject.GROUND_FRICTION); setGroundFriction_UseDefaultStrategy();
setAirDrag(800); setAirDrag_UseDefaultStrategy();
setAirFriction(180); setAirFriction_UseDefaultStrategy();
setSlidingVelocity(164); setSlidingVelocity_UseDefaultStrategy();
setSlidingAcceleration(120); setSlidingAcceleration_UseDefaultStrategy();
setJumpVelocity(PhysicsObject.JUMP_VELOCITY); setJumpVelocity_UseDefaultStrategy();
setGravity(750); setGravity_UseHalfStrategy(750);
} }
} }

@ -3,7 +3,6 @@ package sig.objects.enemies;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Sprite; import sig.engine.Sprite;
import sig.objects.BunnyGirls; import sig.objects.BunnyGirls;
import sig.objects.actor.PhysicsObject;
public class YellowBun extends BunnyGirls{ public class YellowBun extends BunnyGirls{
@ -11,16 +10,16 @@ public class YellowBun extends BunnyGirls{
super(Sprite.YELLOW_STAND,Sprite.YELLOW_WALK, 6.5, RabiClone.p); super(Sprite.YELLOW_STAND,Sprite.YELLOW_WALK, 6.5, RabiClone.p);
setX(x); setX(x);
setY(y); setY(y);
setAccelerationLimits(100, 100); setAccelerationLimits_UseDefaultStrategy();
setVelocityLimits(500, 500); setVelocityLimits_UseDefaultStrategy();
setGroundDrag(2000); setGroundDrag_UseDefaultStrategy();
setGroundFriction(PhysicsObject.GROUND_FRICTION); setGroundFriction_UseDefaultStrategy();
setAirDrag(800); setAirDrag_UseDefaultStrategy();
setAirFriction(180); setAirFriction_UseDefaultStrategy();
setSlidingVelocity(164); setSlidingVelocity_UseDefaultStrategy();
setSlidingAcceleration(120); setSlidingAcceleration_UseDefaultStrategy();
setJumpVelocity(PhysicsObject.JUMP_VELOCITY); setJumpVelocity_UseDefaultStrategy();
setGravity(150); setGravity_UseHalfStrategy(150);
} }

Loading…
Cancel
Save