Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yukitty/godot-addon-integer_resolution_handler
Integer Resolution Handler addon for Godot Engine
https://github.com/yukitty/godot-addon-integer_resolution_handler
Last synced: about 20 hours ago
JSON representation
Integer Resolution Handler addon for Godot Engine
- Host: GitHub
- URL: https://github.com/yukitty/godot-addon-integer_resolution_handler
- Owner: Yukitty
- License: mit
- Created: 2020-10-15T00:58:02.000Z (about 4 years ago)
- Default Branch: 3.X
- Last Pushed: 2021-10-09T09:23:40.000Z (about 3 years ago)
- Last Synced: 2023-11-07T18:23:55.023Z (about 1 year ago)
- Language: GDScript
- Size: 10.7 KB
- Stars: 134
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Integer Resolution Handler
Alternative stretch handler for low resolution (pixel art) games in high resolution windows. Restricts the game resolution to integer steps, keeping pixels square.
## Usage
1. Enable the plugin. Close Project Settings.
2. Navigate Project Settings to the `display/window` category.
3. In the new section "Integer Resolution Handler", set Base Width and Base Height to your game's native pixel resolution.The IntegerResolutionHandler also works with all of the existing `stretch` settings, so fiddle there if you don't like how it behaves. Notably, setting `stretch/aspect` to "Keep" will enforce strict screen resolutions, while "Expand" will allow the viewable area to extend dramatically in all directions between scale steps.
If you set Base Width and Base Height to a 4:3 aspect ratio and use the "Keep Height" or "Expand" aspect handling modes, your game will extend horizontally to support widescreen aspects as well. Just make sure your game is fully playable at its base resolution and GUI elements properly stretch and move, the same as you would for a non-pixel art game.