Like PICO-8, But Bigger.
MEGA-8 is my attempt at making something compatible with the PICO-8 fantasy console.
MEGA-8 is written in Object Pascal using the FreePascal compiler and my own HAL/L2 application framework.
PICO-8 is conceptually very simple, but much like a real game console, it has some weird quirks that are difficult to replicate in practice:
- PICO-8 games are written in Lua, but not normal Lua - it's a crazy fork with some very unusual changes
- C-style cumulative operators (+=, -=, etc.) are supported (these only work in MEGA-8 if a patched version of Lua 5.2 is installed)
- Special if statement syntax isn't supported in MEGA-8 right now (this prevents most unmodified cartridges from loading, I'm looking into two different ways of implementing this syntax but neither of them are pretty)
- The C-style "!=" operator as an alternative to Lua's existing "~=" operator isn't supported yet (but you can easily change a cartridge to use the normal operator by using search/replace in a text editor)
Here's MEGA-8 running PICO-8's "hello.p8" demo alongside the original. Note that MEGA-8 uses a slightly higher resolution, as evident by the font, but remains compatible.
(MEGA-8 running alongside PICO-8, featuring the "hello.p8" demo from the PICO-8 distribution.)
I'm getting closer to making games work. Here's (most of) the splash screen for my favourite PICO-8 game, Attack of Buddha.
(MEGA-8 running alongside PICO-8, featuring the splash screen of the game "Attack of Buddha".)