HorikawaTools is a library providing various useful functions.
Place the file horikawaTools.lua into the LuaScriptsLib folder.
How to use
To enable the HorikawaTools library for a specific level, add this line to lunadll.lua:
local horikawaTools = API.load("horikawaTools");
This will load the HorikawaTools API.
|tableConcat||table 1||table 2|
|Merges two tables into one.||table||table
The base table.
The table to be added to the end of the table 1.
|loadLevel||filename||loading episode name||warp index|
|Exits the current level and loads a new one.||nil||string||string||int|
|Returns the x and y-values relating to the coordinates given in terms of pixels.||int, int||int||int|
|Makes a block invisible.||nil||Block|
|freezePlayer||pause music||pause sound||player x||player y|
|Freezes the player in one spot.||nil||boolean
Whether or not the music should be stopped while the player is frozen. (Default: false)
Whether or not any sounds should be stopped while the player is frozen. (Default: false)
X-position (in the scene) where the player is frozen. (Default: current player x)
Y-position (in the scene) where the player is frozen. (Default: current player y)
|unfreezePlayer||music paused||sound paused|
|Unfreezes the player from one spot.||nil||boolean
Whether or not any music has been paused while the player was frozen. (Default: false)
Whether or not any sounds have been paused while the player was frozen. (Default: false)
|Makes the player invisible.||nil||Player|
|Prints a string of text centered on the screen in the x-axis at the specified y-coordinate.||nil||string||int|
|Makes an NPC invisible.||nil||npc|
Not all features are documented yet on this page, however the file itself is well commented when needed.