triplefox [Lexaloffle Blog Feed] Color word-wrapping text example <p> <table><tr><td> <a href="/bbs/?pid=55899#p"> <img src="/bbs/thumbs/pico55898.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=55899#p"> Color word-wrapping text example 1</a><br><br> by <a href="/bbs/?uid=9627"> triplefox</a> <br><br><br> <a href="/bbs/?pid=55899#p"> [Click to Play]</a> </td></tr></table> </p> <p>I needed to do some &quot;Mad Libs&quot; user-controlled string substitution for a project, so I developed a system that allows both coloring and replacement per word. It's not verified to be robust in all scenarios: long words aren't broken up and substitutions containing multiple words will be treated like a single big word.</p> Thu, 30 Aug 2018 19:38:06 UTC Scaled-sprite voxel renderer <p> <table><tr><td> <a href="/bbs/?pid=51360#p"> <img src="/bbs/thumbs/pico51359.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=51360#p"> Scaled-sprite voxel renderer 0.1</a><br><br> by <a href="/bbs/?uid=9627"> triplefox</a> <br><br><br> <a href="/bbs/?pid=51360#p"> [Click to Play]</a> </td></tr></table> </p> <p>What it is and does:</p> <ul> <li>3D single-point camera(pan and zoom, no rotation)</li> <li>Sorted draw of &quot;scubes&quot; (small cubes/sprite cubes) and &quot;lcubes&quot; (large cubes, collections of scubes - but they could be any shape)</li> <li>Generates voxel data from the cart's sprite map! It works by combining a texture map, a depth map, and an address into the texture data to generate scubes. Then some additional post-processing allows the scubes to be transformed opening possibilities for procedural terrain etc.</li> </ul> <p>I'm not sure how much further I'll go in developing this one because the game I'm making needs something a little more suited to crisp, accurate walls and corridors and I ended up with this after iterating through polygonal voxel cubes first and finding that this technique could approximate that result with far fewer tokens. So I cleaned it up a bit and started thinking about how to make it do things more like old Sega games(Space Harrier, Outrun, Power Drift, Galaxy Force), but the asset pipeline isn't quite as complete as I want yet - so if you want to step in, please go ahead. This probably won't be my focus for a while.</p> Thu, 05 Apr 2018 22:04:01 UTC