https://gist.github.com/The0x539/d8b617 ... 31ce2a4362
Use is as simple as:
Code: Select all
local poof = API.load("poof")
function toggleLayer()
poof.startPoof("layer")
end
Though it's quite general-purpose, its intended purpose was for SMW-style transitions in SMBX platformer level selects, as seen in this proof of concept:
https://ptpb.pw/-sNM.ziphttps://ptpb.pw/EFl4.zip
Roadmap?
- Poof queue, so calling poof.startPoof() twice in a row poofs the layers sequentially, and without stopping at the player position
- Particle effects
- 2-player support
- Options for different camera behavior, teleport to be centered on each tile, don't move at all, move gradually if the structure is bigger than the camera
- Different ways of sorting the blocks, maybe even manual sorting for particularly fancy stuff