Good Enough Minifier for Pico-8 by Paul Hammond (@paulhamx) v0.87 (5-Sep-2023)

About

Hacked together with no skill or thought to fit more levels into Bubble Bobble. Works with my code. No guarantee it will work for everything.

Let me know of any issues in the comments or on Twitter.

How to use

  1. Copy entire content of .p8 file (e.g., invaders.p8) into the top field to the left
  2. Select minification options and click "Minify"
  3. Copy the minified code into a new text file and save, e.g., invaders.min.p8
Alteratively:
  1. Paste any pico-8 Lua code into the top field to the left
  2. Select minification options and click "Minify"

Issues

  • Use 'Ultra Compact' at your own risk ;)
  • Short variable names prefixed with an underscore, e.g., "_a1" may cause conflicts
  • New keywords or keywords I have missed may cause issues
  • Use of inverted apostrophe (`) WILL cause failure

Sample Stats

Taken from the "COMPRESSED SIZE" within Pico-8 0.1.12c

Game Original Minified
Bubble Bobble 104% 81%
Frogger 61% 39%
Invaders 2600 44% 27%
Stix 91% ??%
Boulder Run 99.8% 64%