easyliquids.lua is a library made to easily fill sections with water or lava, but it also provides some advanced features to customize them and make them move in funny and convenient ways! Here's an example:
To use the library, unzip the easyliquids.zip file into your custom level folder. Then, create a luna.lua file (if you haven’t already made one) and insert this line of code:
Code: Select all
local easyliquids = require("easyliquids")
NOTE: By default, the library uses the SMM2 styled water included in the zip file. If you don’t need it, you can avoid copying the image file to your level folder.
NOTE: If you’re using respawnRooms.lua, add this code to your luna.lua file to make the library work properly on respawn:
Code: Select all
function respawnrooms.onPostReset(fromRespawn)
easyliquids.initLiquids()
end
Documentation
Finally, here's the download:
Download