Loading repository data…
Loading repository data…
sjtower / repository
A collection of custom Lua tiles from the Spelunky 2 Community
A collection of custom Lua blocks that can be used freely in other mods.
Includes a single level demonstrating each custom Lua tile.
Copy the "Modules", "Checkpoints", and "Telescopes" directories into your own mod, at the root directory
include one of the module in your Lua level file with requires. EG:
local death_blocks = require("Modules.JawnGC.death_blocks")
When loading your level, activate the mod. EG:
death_blocks.activate(level_state)
When unloading your level, deactivate the mod. Not all mods need to deactivate. EG:
death_blocks.deactivate()
Define the mod's custom tile codes in the level editor in Modlunky
define_tile_code, EG: define_tile_code("fast_push_block")Look at dwelling1.lua and Data/dwell-1.lvl for examples on using requiresactivating the mods, and adding custom tile codes
Checkpoints work a little differently - I encourage you to check out the code in dwelling1.lua to see how to implement checkpoints.
Let me know if you need any help working with these mods.
Contribute your custom Lua tiles - DM me on Discord, or create a pull request in the Github repo