Dget

From Pico-8 Wiki
Jump to navigation Jump to search
dget( index )
Gets a value from persistent cartridge data.
index
The index of the value, 0 to 63.

A cartridge can store 64 numbers (256 bytes) of data to persistent storage. This data is available the next time the user runs the cart, and persists in the player even if the cartridge is replaced with a new version of the same cartridge.

The dget() function retrieves the value for the given index (0 to 63).

Examples

See cartdata() for an example.

See also