Page 1 of 1

retroResolution.lua v1.0 - SNES-styled sprite rotations

Posted: Wed Jan 11, 2023 12:35 pm
by PlumberGraduate
Hello! This script aims to replicate the visual limitations of the SNES by applying a subtle pixelation filter to the game. The effect is most noticeable in tilted/rotated sprites, which in the original SNES games would look pixelated due to the limited resolution of the console.

It's a little hard to explain, so here's a few showcase images:
Spoiler: show
Left is how the game looks by default and right is how it looks with retroResolution.lua.

Image
Image
Image

How to use:
Spoiler: show
1. Extract the contents of the zip file into your episode/level folder.

2. Add this to your luna.lua file:

Code: Select all

local retroResolution = require("retroResolution")

Download

Note: This does not currently work with two players.

Re: retroResolution.lua v1.0 - SNES-styled sprite rotations

Posted: Wed Jan 11, 2023 12:56 pm
by AirShip
already love this.
good work!

Re: retroResolution.lua v1.0 - SNES-styled sprite rotations

Posted: Thu Jan 12, 2023 10:13 am
by FutureNyanCat
If there's one question I'd like to ask, does this apply to custom NPCs and other scripts as well, not just basegame content?

Re: retroResolution.lua v1.0 - SNES-styled sprite rotations

Posted: Thu Jan 12, 2023 1:56 pm
by PlumberGraduate
FutureNyanCat wrote:
Thu Jan 12, 2023 10:13 am
If there's one question I'd like to ask, does this apply to custom NPCs and other scripts as well, not just basegame content?
It applies to custom content too. The script works by essentially lowering the resolution of the game so everything has a consitent pixel size, which means that it should work with any shader and custom NPC.

Re: retroResolution.lua v1.0 - SNES-styled sprite rotations

Posted: Sun Jan 15, 2023 8:44 pm
by FutureNyanCat
I've applied it to my episode and everything in there looks very nice now. I noticed it applies not only to NPCs but to:
- Parallaxing backgrounds (Reminds me of Super Cat Tales' parallax system which is more accurate to SNES displays)
- Darkness
- Weather and special effects (Noticeable on caustics, snow, and rain)

Excellent script btw, it makes one's episode feel a lot nicer to look at.