mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 08:11:35 +02:00
Add 3X game speed and R2/L2 shoulder button speed hotkeys
Add 3X as a speed option between 2X and 4X in GameSpeed.LEVELS (#677). Add controller hotkeys: rightshoulder (R2) cycles speed up through the level list, leftshoulder (L2) cycles speed down. Keyboard equivalent is hotkey 1 (cycles up). All hotkeys are gated during transitions, scripted cutscenes, and link play (same guards as the color hotkey at key 2). The _cycleSpeed helper wraps the save-options update with the same busy/overworld guard used by the existing color-cycle hotkey. Fixes #677
This commit is contained in:
@@ -18,7 +18,7 @@ local GameSpeed = {}
|
||||
-- attempt is long enough that the iteration loop, not the engine, is the
|
||||
-- bottleneck. Vsync caps how much a real frame can do, so past 10X the
|
||||
-- multiplier is increasingly a ceiling rather than a rate.
|
||||
GameSpeed.LEVELS = { 1, 2, 4, 10, 20, 30, 50, 75, 100,200 }
|
||||
GameSpeed.LEVELS = { 1, 2, 3, 4, 10, 20, 30, 50, 75, 100, 200 }
|
||||
GameSpeed.DEFAULT = 1
|
||||
|
||||
function GameSpeed.levelLabel(v)
|
||||
|
||||
Reference in New Issue
Block a user