mirror of
https://github.com/sndrec/WebMonkeyBall.git
synced 2026-02-03 02:03:33 +00:00
adjust text and input falloff default
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
<span>Gyro Sensitivity <output id="gyro-sensitivity-value">25°</output></span>
|
||||
<input id="gyro-sensitivity" type="range" min="10" max="25" step="1" value="25" />
|
||||
</label>
|
||||
<div id="gyro-hint" class="control-hint">Tap the screen to recalibrate gyro.</div>
|
||||
<div id="gyro-hint" class="control-hint">Tap the screen during gameplay to recalibrate gyro.</div>
|
||||
</div>
|
||||
<div id="touch-settings" class="control-mode-block hidden">
|
||||
<label class="field slider-field">
|
||||
@@ -83,7 +83,7 @@
|
||||
<div id="input-falloff-block" class="control-mode-block">
|
||||
<label class="field slider-field">
|
||||
<span>Input Falloff <output id="input-falloff-value">1.5</output></span>
|
||||
<input id="input-falloff" type="range" min="1" max="2" step="0.05" value="1.5" />
|
||||
<input id="input-falloff" type="range" min="1" max="2" step="0.05" value="1" />
|
||||
</label>
|
||||
<div class="input-falloff-visuals">
|
||||
<div id="input-falloff-curve-wrap" class="response-curve">
|
||||
|
||||
@@ -36,7 +36,7 @@ export class Input {
|
||||
|
||||
this.gyroSensitivity = 25;
|
||||
this.joystickScale = 1;
|
||||
this.inputFalloff = 1.5;
|
||||
this.inputFalloff = 1;
|
||||
this.touchPreview = false;
|
||||
this.padGate = loadPadGate() ?? DEFAULT_STICK_GATE.map((point) => [point[0], point[1]]);
|
||||
|
||||
|
||||
@@ -1107,7 +1107,7 @@ bindRangeControl(
|
||||
inputFalloffInput,
|
||||
inputFalloffValue,
|
||||
'smb_input_falloff',
|
||||
1.5,
|
||||
1,
|
||||
(value) => value.toFixed(2).replace(/\.00$/, ''),
|
||||
(value) => {
|
||||
game.input?.setInputFalloff?.(value);
|
||||
@@ -1116,7 +1116,7 @@ bindRangeControl(
|
||||
);
|
||||
|
||||
updateControlModeSettingsVisibility();
|
||||
updateFalloffCurve(game.input?.inputFalloff ?? 1.5);
|
||||
updateFalloffCurve(game.input?.inputFalloff ?? 1);
|
||||
syncTouchPreviewVisibility();
|
||||
|
||||
smb2ModeSelect?.addEventListener('change', () => {
|
||||
|
||||
Reference in New Issue
Block a user