Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jerakin/defold-resize


https://github.com/jerakin/defold-resize

Last synced: about 1 month ago
JSON representation

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.