ihm-tswow / Links-Awakening-DX-HD

Unaffiliated fork off https://linksawakeningdxhd.itch.io/links-awakening-dx-hd
358 stars 122 forks source link

Allow GameScale to be adjusted in-game using controller/keyboard #9

Open malmazuke opened 8 months ago

malmazuke commented 8 months ago

Description

This PR adds the ability to modify the game scale in-game via the keyboard/controller.

Keys default to L/R buttons on controller, +/- buttons on keyboard.

Inspired from a Vinesauce stream, where Vinny mentioned it should be added in an update.

Items of note

It looks like at some point L/R were intended to be used for something, but were commented out of the code.

Additionally, I've had to adjust the margins of the Control Settings screen in order to fit the new key rows. This is less noticeable in the in-game Settings menu - however, in the Settings menu found at the Main Menu the "Reset" and "Back" buttons were being pushed off screen by the two new button rows.

Future Improvements

Having some kind of toast or UI indication appear on screen when a player adjusts the scale would be nice.

Screenshots

Control Settings (Main Menu)

Menu - Pre-game

Control Settings (In-Game)

Menu - In-game

In-Game Footage

https://github.com/ihm-tswow/Links-Awakening-DX-HD/assets/1912017/1c275b2e-1620-49cb-a6f8-64b3d36f798a