Skip to content

Commit 53cf4e1

Browse files
committed
Reduced lava curve + some code nitpicks
1 parent d613925 commit 53cf4e1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Entities/SidewaysLava.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ public override void Update() {
269269
if (sandwichHasToSetPosition) {
270270
sandwichHasToSetPosition = false;
271271

272-
// place the sandwich relative to the camera, so that both sides are just off-screen.
273272
// should be 20px to the right, so that the right rect is at 300px and both rects have the same on-screen size (20px).
274273
X = SceneAs<Level>().Camera.Left + 20f;
275274
}
@@ -299,7 +298,7 @@ public override void Update() {
299298
}
300299
}
301300

302-
if ((player == null || !player.JustRespawned)) {
301+
if (player == null || !player.JustRespawned) {
303302
waiting = false;
304303
}
305304
} else {

Entities/SidewaysLavaRect.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private struct SurfaceBubble {
3333

3434
public float SmallWaveAmplitude = 1f;
3535
public float BigWaveAmplitude = 4f;
36-
public float CurveAmplitude = 12f;
36+
public float CurveAmplitude = 7f;
3737
public float UpdateMultiplier = 1f;
3838

3939
public Color SurfaceColor = Color.White;
@@ -163,7 +163,7 @@ private float Wave(int step, float length) {
163163
if (step % 2 == 0) {
164164
waveOffset += Spikey;
165165
}
166-
waveOffset += (1f - Calc.YoYo((float) stepOffset / length)) * CurveAmplitude;
166+
waveOffset += (1f - Calc.YoYo(stepOffset / length)) * CurveAmplitude;
167167
return waveOffset;
168168
}
169169

0 commit comments

Comments
 (0)