define for super responsive controls

This commit is contained in:
Reonu
2021-07-14 00:23:56 +01:00
parent f547c822e1
commit 5ff7236847
2 changed files with 8 additions and 1 deletions

View File

@@ -65,9 +65,11 @@
// Remove course specific camera processing
#define CAMERA_FIX
// Change the movement speed when hanging from a ceiling
#define HANGING_SPEED 4.f
#define HANGING_SPEED 12.f
// Makes Mario face the direction of the analog stick directly while hanging from a ceiling, without doing "semicircles"
#define TIGHTER_HANGING_CONTROLS
// Makes Mario turn around instantly when moving on the ground
//#define SUPER_RESPONSIVE_CONTROLS
// Disables fall damage
#define NO_FALL_DAMAGE
// Disables the scream that mario makes when falling off a great height (this is separate from actual fall damage)

View File

@@ -386,8 +386,13 @@ void update_shell_speed(struct MarioState *m) {
m->forwardVel = 64.0f;
}
#ifdef SUPER_RESPONSIVE_CONTROLS
m->faceAngle[1] = m->intendedYaw;
#else
m->faceAngle[1] =
m->intendedYaw - approach_s32((s16)(m->intendedYaw - m->faceAngle[1]), 0, 0x800, 0x800);
#endif
apply_slope_accel(m);
}