The Devious Dump Of Lua Libraries

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

DeviousQuacks23
Swooper
Swooper
Posts: 64
Joined: Tue Apr 11, 2023 9:29 am
Flair: Decent at LunaLua coding.
Pronouns: him

The Devious Dump Of Lua Libraries

Postby DeviousQuacks23 » Wed Jun 11, 2025 8:36 am

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
Last edited by DeviousQuacks23 on Sat Aug 23, 2025 1:08 am, edited 2 times in total.

PizzaNoob
Swooper
Swooper
Posts: 63
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

Re: The Devious Dump Of Lua Libraries

Postby PizzaNoob » 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

DeviousQuacks23
Swooper
Swooper
Posts: 64
Joined: Tue Apr 11, 2023 9:29 am
Flair: Decent at LunaLua coding.
Pronouns: him

Re: The Devious Dump Of Lua Libraries

Postby DeviousQuacks23 » Fri Jul 25, 2025 10:10 am

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.

CaptainMonochrome
Hoopster
Hoopster
Posts: 48
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/they

Re: The Devious Dump Of Lua Libraries

Postby CaptainMonochrome » Fri Aug 08, 2025 11:22 am

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!

mariobrigade2018
Eerie
Eerie
Posts: 719
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: The Devious Dump Of Lua Libraries

Postby mariobrigade2018 » Sat Aug 23, 2025 2:11 am

Bumping because new library.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 19 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari