Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original PR: #44
push:function()
is nowpush.function()
.push.setupScreen(pushWidth, pushHeight, {upscale = ..., canvas = ...})
upscale
(string): upscale push's resolution to the current window size"normal"
: fit to the current window size, preserving aspect ratio"pixel-perfect"
: pixel-perfect scaling using integer scaling (for values ≥1, otherwise uses normal scaling)"stretched"
: stretch to the current window sizecanvas
(bool): use and upscale canvas set to push's resolutionpush.resize(width, height)
.push:setBackgroundColor()
, since it was essentially just an integrated alias forlove.graphics.setBackgroundColor()
.push:apply()
, since it was pretty limited in functionality, only serving as an alias forpush:start()
andpush:finish()
(plus, API changes will require devs to change their code anyway).low-res
example.mouse-input
example.An additional note: I think the canvas API is really cool, but it could use a little cleaning up and tweaks. Its code is mostly untouched in my rewrite, so it should work the same for now.
Also, I wanted to make the screenshot on the README a GIF like the original one, but I wasn't able to record one properly.
NOTE: Everything in this changelog is subject to change, I have made more changes and experimental features that have yet to be uploaded.