TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
6.94k stars 556 forks source link

Add screenshot functions #1046

Closed InfoTeddy closed 8 months ago

InfoTeddy commented 10 months ago

This adds a screenshot keybind (F6) and hooks Steam's screenshot function to send our own screenshots. This is so that people can easily grab screenshots of pixel perfect internal resolution (320x240) without needing to downscale it themselves.

Issues:

Legal Stuff:

By submitting this pull request, I confirm that...

Daaaav commented 10 months ago

I wonder if 640x480 isn't a better resolution for screenshots. In an ideal world, pixel art never gets upscaled by blurry linear scaling, but in practice, it's applied everywhere. And 320x240 is small enough on most screens that people will want their screenshots to be bigger (for example, when uploading your level). For example, if I take a 320x240 screenshot and put it on a forum with [img width=640], it becomes a blurry mess. Same with the standard zoom buttons in browsers and image viewers.

Maybe as a compromise we should store both 320x240 and 640x480 versions at the same time? Which we probably can't cleanly do with the Steam integration... But in that case I'd personally go with just 640x480.

TerryCavanagh commented 10 months ago

(yeah, I think I prefer 640x480 as a more practical screenshot size too)

NyakoFox commented 10 months ago

I think it'd be best if 640x480 was uploaded to Steam, but we'd also keep around the 320x240 screenshot in a folder somewhere for things like level database thumbnails.

InfoTeddy commented 8 months ago

I think it'd be best if 640x480 was uploaded to Steam, but we'd also keep around the 320x240 screenshot in a folder somewhere for things like level database thumbnails.

So would people be fine with both 1x and 2x screenshots being saved (in different directories)? Just trying to head off any concerns about wasted disk space or extra file management.

Daaaav commented 8 months ago

Yeah, that sounds fine by me. VVVVVV's resolution is small enough that storing both 640x480 and 320x240 is still much less pixels than would go into a screenshot of most other games (that have fullscreen resolution). If you don't like the space they take up anyway, just delete them again.

flibitijibibo commented 8 months ago

After compression the 1x in particular is probably microscopic, so yeah having both should be okay.