centuryglass [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=25259 Code minimizing <p>I can never resist an opportunity to mess around with regular expressions, so here's my attempt at a code minimizing script.</p> <p><a href="https://github.com/centuryglass/phantasos/blob/master/minimize.pl"><a href="https://github.com/centuryglass/phantasos/blob/master/minimize.pl">https://github.com/centuryglass/phantasos/blob/master/minimize.pl</a></a></p> <p>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&quot;. 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> https://www.lexaloffle.com/bbs/?tid=29895 https://www.lexaloffle.com/bbs/?tid=29895 Mon, 04 Sep 2017 14:39:05 UTC Phantasos <p> <table><tr><td> <a href="/bbs/?pid=43825#p"> <img src="/bbs/thumbs/pico44406.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43825#p"> Phantasos 0.7</a><br><br> by <a href="/bbs/?uid=25259"> centuryglass</a> <br><br><br> <a href="/bbs/?pid=43825#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=43825#p"> <img src="/bbs/thumbs/pico43824.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43825#p"> Phantasos 0.6</a><br><br> by <a href="/bbs/?uid=25259"> centuryglass</a> <br><br><br> <a href="/bbs/?pid=43825#p"> [Click to Play]</a> </td></tr></table> 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> https://www.lexaloffle.com/bbs/?tid=29876 https://www.lexaloffle.com/bbs/?tid=29876 Fri, 01 Sep 2017 02:23:10 UTC Phantasos wip <p> <table><tr><td> <a href="/bbs/?pid=43402#p"> <img src="/bbs/thumbs/pico43401.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43402#p"> Phantasos wip</a><br><br> by <a href="/bbs/?uid=25259"> centuryglass</a> <br><br><br> <a href="/bbs/?pid=43402#p"> [Click to Play]</a> </td></tr></table> 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> https://www.lexaloffle.com/bbs/?tid=29811 https://www.lexaloffle.com/bbs/?tid=29811 Fri, 18 Aug 2017 13:51:20 UTC