diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-03-07 08:21:41 -0800 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-03-07 08:21:41 -0800 |
| commit | f2135acc9accdc938035d753ee6e79c865fd44e2 (patch) | |
| tree | 1016a19e087ce7666c3e2b20a07143bb063bd9c9 /core/src/test/java/coffee/liz/dyl | |
| parent | 19385bdee0972edcedf2a719fc5130aa32134029 (diff) | |
| download | dyl-f2135acc9accdc938035d753ee6e79c865fd44e2.tar.gz dyl-f2135acc9accdc938035d753ee6e79c865fd44e2.zip | |
Some refactoring work
Diffstat (limited to 'core/src/test/java/coffee/liz/dyl')
| -rw-r--r-- | core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java b/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java index 4c285fb..885c112 100644 --- a/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java +++ b/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java @@ -21,7 +21,7 @@ class PhysicsSystemsTest { @Test public void gravityAcceleratesEntityDownwardOverTime() { - final DAGWorld world = new DAGWorld(new ForceReductionSystem(GRAVITY), new IntegrationSystem()); + final DAGWorld world = new DAGWorld(new AccelerationSystem(GRAVITY), new MovementSystem()); final Entity entity = world.createEntity(); entity.add(new Mass(1f)); entity.add(new Velocity(Vec2f.ZERO)); @@ -37,7 +37,7 @@ class PhysicsSystemsTest { @Test public void forcesAreClearedEachFrame() { - final DAGWorld world = new DAGWorld(new ForceReductionSystem(GRAVITY), new IntegrationSystem()); + final DAGWorld world = new DAGWorld(new AccelerationSystem(GRAVITY), new MovementSystem()); final Entity entity = world.createEntity(); entity.add(new Mass(1f)); entity.add(new Velocity(Vec2f.ZERO)); @@ -53,7 +53,7 @@ class PhysicsSystemsTest { @Test public void entityLandsOnPlatformAndStops() { final DAGWorld world = new DAGWorld( - new ForceReductionSystem(GRAVITY), new IntegrationSystem(), new CollisionSystem()); + new AccelerationSystem(GRAVITY), new MovementSystem(), new CollisionSystem()); final Entity player = world.createEntity(); player.add(new Mass(1f)); |
