ryanisaacg / quicksilver

A simple framework for 2D games on desktop and web
https://ryanisaacg.github.io/quicksilver
Other
782 stars 77 forks source link

Actually implement a resize API #616

Closed ryanisaacg closed 4 years ago

ryanisaacg commented 4 years ago

566 claimed to handle resizes. Unfortunately I had not hooked up the module graph correctly, and it turns out that code wasn't even being compiled. Whoops!

This adds the ResizeStrategy API, which allows you to generate Transforms to handle resizing of the window. Unlike in Quicksilver 0.3, where this code was all magic-behind-the-scenes, this is actually all in 'userspace.' It uses only public APIs from other Quicksilver modules.

Resolves #594 Resolves #602

At default size: image Scaled up: image

Checks