Lightweight Stardew Valley mod allowing players to use the Left Shift key to run.
A basic Stardew Valley mod that repurposes the Left Shift key into a dedicated sprint button, rather than the vanilla slow walking behaviour. This mod was built using C# as a personal quality of life improvement to the game as well as a learning project to deepen my understanding of SMAPI and Stardew Valley's internal movement logic.
- C#
- SMAPI (Stardew Modding API)
- HarmonyLib (method patching)
- Stardew Valley internal game logic
- Visual Studio
- Fully replaces the original slow-walking mechanic
- Harmony postfix patch on Farmer.getMovementSpeed()
- Holding Left Shift down increases player speed to 8
- Releasing Left Shift returns the player speed to 5
- Navigating and understanding Stardew Valley's internal class structure
- Working with existing game values (speed) and overriding them safely
- Applied Transferrable Java knowledge to C# mod development
- Using Harmony patches to safely modify the game's behaviour
- Understanding how SMAPI loads mods and events
Dependencies: Stardew Valley, SMAPI
- Install SMAPI
- Download/clone this mod
- Place the mod folder into Stardew Valley 'Mods' directory
- Launch Stardew Valley through SMAPI
- Open a game and hold Left Shift while walking