Log In  
:: Unfold ::

I can never resist an opportunity to mess around with regular expressions, so here's my attempt at a code minimizing script.


If you already have perl installed, you just need to run 'perl minimize.pl yourcode.p8'. It will output the minimized code to 'yourcode_min.p8". Token mappings are also saved as 'yourcode tokens.txt' to make debugging easier. I've only tested it with my game and a few random carts. Let me know if it doesn't work on your code, I'm sure there are a couple obscure reserved words and odd failure conditions I've missed.

P#43919 2017-09-04 14:39 ( Edited 2017-09-07 03:52)

:: Unfold ::

Cart #44406 | 2017-09-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #43824 | 2017-09-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
Phantasos is a fairly traditional tiled roguelike, heavily inspired by Powder. The game is by no means complete, but I've gotten it to the point where it's fun and stable enough for now. Fighting the token limit has been more fun than I expected, so I'll probably keep cramming in extra features until it's exactly at the limit and I can't find anything else to optimize.

P#43825 2017-09-01 02:23 ( Edited 2017-09-21 05:33)

:: Unfold ::

Cart #43401 | 2017-08-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
I've been working on this rogelike for about a month now, and I figured I should post it now that I've finally gotten it under the compressed size limit. If anyone's interested I will share the unreduced code, otherwise I'll post that when I'm done with this project.

P#43402 2017-08-18 13:51 ( Edited 2017-08-20 15:26)

Follow Lexaloffle:          
Generated 2023-06-09 13:40:39 | 0.101s | Q:14