Resolution issues
This week, I faced a challenging bug in our game's settings functionality, specifically concerning screen resolution settings. Whenever players attempted to change the resolution, the settings would invariably revert to 640 x 480, irrespective of their choice. This issue was critical because it constrained players to a lower resolution, severely degrading the visual quality and player immersion. For a game that emphasizes aesthetics, this could deter users with high-end displays from fully engaging with and enjoying the game.
The root cause of the resolution reset issue was identified as incorrect handling of resolution indices within our settings dropdown menu, compounded by duplicate resolution entries. To tackle this, I implemented a HashSet to filter out duplicate resolutions based on their width and height, ensuring that each dropdown option was unique. Additionally, I modified our event listener to correctly apply the selected resolution instantly, streamlining the user interface and allowing real-time adjustments. These changes not only fixed the bug but also significantly improved the user experience by enabling players to seamlessly select and maintain their desired resolutions, thereby enhancing the graphical fidelity and overall gameplay experience.
By Fraser Paterson
Date 4/26/2024
Get Suits of the Abyss
Suits of the Abyss
Status | In development |
Author | AstralArchitects |
Genre | Action, Platformer |
Tags | Roguelike |
More posts
- Carrying player data between scenes in Unity (Pt.3, The Finale)May 04, 2024
- Player ground detection issueMay 02, 2024
- URP sprite shader issueApr 27, 2024
- Carrying player data between scenes in Unity (Pt.2)Apr 27, 2024
- Weapon Effects and AnimationsApr 27, 2024
- Minimap and fog of warApr 20, 2024
- Player WeaponsApr 20, 2024
- Carrying player data between scenes in UnityApr 13, 2024
- Poker Hand DetectionApr 13, 2024
Leave a comment
Log in with itch.io to leave a comment.