4 ms·
PICO-8 is a "fantasy console" with an arbitrary limitation to imitate the real world console in the past century. While it uses Lua as a scripting language, it
by lifthrasiir 8y ago
PICO-8 is a "fantasy console" with an arbitrary limitation to imitate the real world console in the past century. While it uses Lua as a scripting language, it comes with very severe memory (<2MB) and code size (<8K tokens) limitation so that it is actually akin to programming in slightly more powerful BASIC and PEEK and POKE (yes they are actual names).
To elaborate what happens when the buffer overflows... The official README explains that map (normally sprites) starts at 0x2000 and some other data starts at 0x3000. Therefore it will start overflowing other data, and depending on what you expect in those area, it may or may not break the game. The entirety of PICO-8 is intentionally constructed in this way to give its look and feel.
- jamesgeck0 8y agoOne of the example games distributed with PICO-8 has a "glitch mode" that POKEs at a random spot in memory every few seconds. The game becomes progressively more corrupted as you play, creating an effect similar to a NES cartridge that needs cleaning.