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()

Clear the screen with a palette color

sprite()

Draw a sprite or block of sprites

map()

Draw the tilemap

camera()

Set the camera offset

line()

Draw a line

rect()

Draw an outlined rectangle

fill_rect()

Draw a filled rectangle

key_pressed()

Check if a key is held down

print()

Write text to the output panel

set_col()

Remap a palette color

reset_col()

Restore the original palette