LoveDan [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=42093 Laravel style Die and Dump <p> <table><tr><td> <a href="/bbs/?pid=72160#p"> <img src="/bbs/thumbs/pico8_ziboyohiyu-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72160#p"> dd 1.1</a><br><br> by <a href="/bbs/?uid=42093"> LoveDan</a> <br><br><br> <a href="/bbs/?pid=72160#p"> [Click to Play]</a> </td></tr></table> <br /> I'm coming from the Laravel world and there's a great helper function I use all the time called 'Die and Dump'. It's perfect for debugging and I've been missing it so I rewrote it for pico8.</p> <p>Wherever you are in your code put dd($variable) and it will work out whether it's a number, string or table and print it all out in a tree and then stop() the process. Colour coded per level in the array. </p> <p><em>edit</em> fixed bug rendering a single string</p> https://www.lexaloffle.com/bbs/?tid=36575 https://www.lexaloffle.com/bbs/?tid=36575 Wed, 22 Jan 2020 05:17:53 UTC Text Forge - Auto formatting text <p> <table><tr><td> <a href="/bbs/?pid=72124#p"> <img src="/bbs/thumbs/pico8_waprjugo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72124#p"> waprjugo</a><br><br> by <a href="/bbs/?uid=42093"> LoveDan</a> <br><br><br> <a href="/bbs/?pid=72124#p"> [Click to Play]</a> </td></tr></table> <br /> This is a code snippet to create an auto formatting text window. It's around 300 tokens. You can slim that down if you remove some of the visual niceties.</p> https://www.lexaloffle.com/bbs/?tid=36564 https://www.lexaloffle.com/bbs/?tid=36564 Mon, 20 Jan 2020 06:07:18 UTC