API Reference¶
The Naucto Lua API provides a small, focused set of functions for building games. All functions are available as globals in your Lua scripts.
Summary¶
Function |
Description |
|---|---|
Clear the screen with a palette color |
|
Draw a sprite or block of sprites |
|
Draw the tilemap |
|
Read a tile from the tilemap |
|
Read sprite flags |
|
Set the camera offset |
|
Draw a line |
|
Draw an outlined rectangle |
|
Draw a filled rectangle |
|
Check if a key is held down |
|
Write text to the output panel |
|
Remap a palette color |
|
Restore the original palette |
|
Play a Sound Editor music slot |
|
Stop music playback |
|
Host an online multiplayer session |
|
Join an online multiplayer session |
|
Leave the current session |
|
Your player id in the session |
|
Table shared by all players |
|
Send a custom event to the other players |
|
React to network events and changes |
|
Mutual exclusion between players |
|
Shared first-in, first-out queue |