============= 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 | +==============================================+==========================================+ | :func:`clear` | Clear the screen with a palette color | +----------------------------------------------+------------------------------------------+ | :func:`sprite` | Draw a sprite or block of sprites | +----------------------------------------------+------------------------------------------+ | :func:`map` | Draw the tilemap | +----------------------------------------------+------------------------------------------+ | :func:`camera` | Set the camera offset | +----------------------------------------------+------------------------------------------+ | :func:`line` | Draw a line | +----------------------------------------------+------------------------------------------+ | :func:`rect` | Draw an outlined rectangle | +----------------------------------------------+------------------------------------------+ | :func:`fill_rect` | Draw a filled rectangle | +----------------------------------------------+------------------------------------------+ | :func:`key_pressed` | Check if a key is held down | +----------------------------------------------+------------------------------------------+ | :func:`print` | Write text to the output panel | +----------------------------------------------+------------------------------------------+ | :func:`set_col` | Remap a palette color | +----------------------------------------------+------------------------------------------+ | :func:`reset_col` | Restore the original palette | +----------------------------------------------+------------------------------------------+ .. toctree:: :maxdepth: 2 rendering input debug palette