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.

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

Posted: Tue Feb 07, 2023 8:20 pm
by IttaBaby
You have solved my greatest pet peeve! :D

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

Posted: Thu Mar 02, 2023 5:45 am
by MegoZ_
GOD I've been wanting this for so long, thank you!

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

Posted: Sun Apr 28, 2024 3:15 pm
by Doodoxing
Speaking on impact on parallaxing backgrounds, is there a way that effect won't render on them? Especially when they are moving (like a sky with clouds). It feels a bit laggy and not smooth on some parts of parallax backgrounds. Anyway, very good script! It really helped me on snow screen effects to look more retro.

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

Posted: Sun Apr 28, 2024 6:15 pm
by mariobrigade2018
Doodoxing wrote:
Sun Apr 28, 2024 3:15 pm
Speaking on impact on parallaxing backgrounds, is there a way that effect won't render on them? Especially when they are moving (like a sky with clouds). It feels a bit laggy and not smooth on some parts of parallax backgrounds. Anyway, very good script! It really helped me on snow screen effects to look more retro.
PlumberGraduate wrote: 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.
So the answer is no.

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

Posted: Wed Jul 23, 2025 9:45 am
by _________________
Thank you very much.

I will gladly credit you for that when I decided to use it for my very smol project.