Skip to content

Commit

Permalink
Properly init Difficulty values in WaterSimulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Henauxg committed Jun 24, 2023
1 parent a5da8df commit b3883ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/src/fr/baldurcrew/gdx25/water/WaterSimulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.badlogic.gdx.physics.box2d.*;
import com.badlogic.gdx.utils.Disposable;
import fr.baldurcrew.gdx25.CoreGame;
import fr.baldurcrew.gdx25.Difficulty;
import fr.baldurcrew.gdx25.physics.ContactHandler;
import fr.baldurcrew.gdx25.physics.FixtureContact;
import fr.baldurcrew.gdx25.utils.Range;
Expand Down Expand Up @@ -41,13 +42,13 @@ public class WaterSimulation implements Disposable, ContactHandler {

// TODO Tweak
private int wavesPropagationPasses = 4; // 8
private float wavesPropagationSpreadFactor = 0.2f;
private float springsStiffness = 0.005f; // TODO Reduce
private float wavesPropagationSpreadFactor = Difficulty.WAVE_SPREAD_FACTOR_AT_MIN_SCALING;
private float springsStiffness = 0.005f;
private float springsDampeningFactor = 0.025f;
private float baseWaterLevel = 5f;
private float waterDensity = 1.0f;
private float fakeWaterVelocityX = 15;
private float fakeWaterVelocityY = 0;
private float fakeWaterVelocityX = Difficulty.FAKE_WATER_VELOCITY_X_AT_MIN_SCALING;
private float fakeWaterVelocityY = Difficulty.FAKE_WATER_VELOCITY_Y_AT_MIN_SCALING;


/**
Expand Down

0 comments on commit b3883ec

Please sign in to comment.