Page 1 of 1

The Devious Dump Of Lua Libraries

Posted: Wed Jun 11, 2025 8:36 am
by DeviousQuacks23

Image

Hello again, this is a collection of my previously released scripts for SMBX2.
Oh, and future scripts will be added to this pack as well.

Enjoy!



splishSplash.lua

A small library that adds some new effects for splashing.
Quicksand support is included, and NPC support is included too. It is also multiplayer compatible.
You can customize the effects and the sounds, and there are options to disable NPC and quicksand splashes.

To use the library, simply put this code into your luna.lua file:

Code: Select all

local splishSplash = require("splishSplash")


smm2Physics.lua

A small standalone library that contains the physics tweaks from Cpt. Mono's SMM2 costumes.
To use the library, simply put this code into your luna.lua file:

Code: Select all

local smm2Physics = require("smm2Physics")
When using this, give credit to Cpt. Mono as well!



autoscrollDX.lua

A fork of the basegame autoscroll.lua, that fixes incompatibilities with widescreen and smallscreen.
It also changes onLoop (which is outdated) to onTick.

To use the library, simply put this code into your luna.lua file:

Code: Select all

local autoscroll = require("autoscrollDX")
If you're using this library on an existing level that already has the basegame autoscroll, you'll have to
replace the line that loads the module with this line.
Now, just use the module like you would with the basegame autoscroll.



Dynamic retroResolution.lua

A fork of PlumberGraduate's retroResolution.lua.
This adds automatic widescreen and smallscreen support to the script. You no longer need to go into the code and manually change the screen size.
When using this, give credit to PlumberGraduate as well!



stunParticles.lua

A small library that adds a new effect for when the player is stunned, just like in the SMM games.
To use the library, simply put this code into your luna.lua file:

Code: Select all

local stunParticles = require("stunParticles")


Download

Re: The Devious Dump Of Lua Libraries

Posted: Wed Jul 02, 2025 1:29 pm
by PizzaNoob
These are great scripts :D
but I get this error when using the "scrollTo" function, and probably functions that utilize a "left" and "bottom" cordinate

Image

Re: The Devious Dump Of Lua Libraries

Posted: Fri Jul 25, 2025 10:10 am
by DeviousQuacks23
PizzaNoob wrote:
Wed Jul 02, 2025 1:29 pm
These are great scripts :D
but I get this error when using the "scrollTo" function, and probably functions that utilize a "left" and "bottom" cordinate

Image
Fixed.

Re: The Devious Dump Of Lua Libraries

Posted: Fri Aug 08, 2025 11:22 am
by CaptainMonochrome
Heya, Cpt. Mono here.

Hey, thanks for cleaning up all of that physics code I wrote! It was all way back when, before I actually knew how to program things.

I hope you and anyone else who uses it has found it useful.

Cheers!

Re: The Devious Dump Of Lua Libraries

Posted: Sat Aug 23, 2025 2:11 am
by mariobrigade2018
Bumping because new library.