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

Share and discuss custom LunaLua code and content packs for SMBX2.
PlumberGraduate
Rex
Rex
Posts: 38
Joined: Sat Jun 14, 2014 11:39 am

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

Postby PlumberGraduate » Wed Jan 11, 2023 12:35 pm

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.

AirShip
Panser
Panser
Posts: 1062
Joined: Wed Jan 01, 2014 1:30 am
Flair: The Flying Ghost
Contact:

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

Postby AirShip » Wed Jan 11, 2023 12:56 pm

already love this.
good work!

FutureNyanCat
Rocky Wrench
Rocky Wrench
Posts: 695
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

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

Postby FutureNyanCat » 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?

PlumberGraduate
Rex
Rex
Posts: 38
Joined: Sat Jun 14, 2014 11:39 am

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

Postby PlumberGraduate » Thu Jan 12, 2023 1:56 pm

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.

FutureNyanCat
Rocky Wrench
Rocky Wrench
Posts: 695
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

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

Postby FutureNyanCat » Sun Jan 15, 2023 8:44 pm

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.

IttaBaby
Swooper
Swooper
Posts: 53
Joined: Sat Apr 08, 2017 8:19 pm

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

Postby IttaBaby » Tue Feb 07, 2023 8:20 pm

You have solved my greatest pet peeve! :D

MegoZ_
Spiny
Spiny
Posts: 25
Joined: Mon Jun 04, 2018 10:25 am
Pronouns: he/him
Contact:

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

Postby MegoZ_ » Thu Mar 02, 2023 5:45 am

GOD I've been wanting this for so long, thank you!


Return to “LunaLua”

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari