Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jerakin/defold-resize
https://github.com/jerakin/defold-resize
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jerakin/defold-resize
- Owner: Jerakin
- Created: 2024-07-06T12:23:45.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-06T13:24:03.000Z (6 months ago)
- Last Synced: 2024-07-07T13:45:27.172Z (6 months ago)
- Language: Lua
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# defold-resize
A small library to switch between resolutions. It adds a menu in the bottom right that you can use to switch.You can easily add new ones to the menu, or remove the standard ones you don't want.
```lua
local resize = require("resize.resize")-- Add a new one
resize.add("SXGA(5:4)", vmath.vector3(1280, 2024, 1))-- Remove an already added.
resize.remove("16:9")```
## Installation
To use the library in a Defold project this project has to be added as a Defold library dependency. Open the game.project file and in the Dependencies field in the Project section add:https://github.com/Jerakin/defold-resize/archive/main.zip
Or point to the ZIP file of a specific release.