Skip to content

Commit 3769dc9

Browse files
added different slope decels depending on surface type
just like the vanilla game! it wouldn't be coherent for all surface types to share ONE single slope decel
1 parent 6944f4d commit 3769dc9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/game/mario_actions_moving.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,17 @@ s32 apply_slope_decel(struct MarioState *m, f32 decelCoef) {
346346
s32 stopped = FALSE;
347347

348348
switch (mario_get_floor_class(m)) {
349+
case SURFACE_CLASS_VERY_SLIPPERY:
350+
decel = decelCoef * 0.2f;
351+
break;
352+
case SURFACE_CLASS_SLIPPERY:
353+
decel = decelCoef * 0.5f;
354+
break;
349355
default:
350-
decel = decelCoef * 0.85f;
356+
decel = decelCoef * 1.0f;
357+
break;
358+
case SURFACE_CLASS_NOT_SLIPPERY:
359+
decel = decelCoef * 2.0f;
351360
break;
352361
}
353362

0 commit comments

Comments
 (0)