Billiam [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=45242 PBG: Bullet generator and configurator <p> <table><tr><td> <a href="/bbs/?pid=79374#p"> <img src="/bbs/thumbs/pico8_watuyagego-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=79374#p"> watuyagego</a><br><br> by <a href="/bbs/?uid=45242"> Billiam</a> <br><br><br> <a href="/bbs/?pid=79374#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a not-as-smart-as-id-like bullet generator I was planning to use for a bullet hell game, or to control enemy spawns and pattern configuration.</p> <p>I'd like to add some nesting (so that effects could be chained, or shots could explode after a delay), and make it a bit more generic.</p> <p>Usage: click to increment a value, right-click do decrement.<br /> Click &quot;projectiles&quot; or &quot;pattern&quot; to toggle between settings related to the spawned items themselves, and the pattern which spawns them.</p> <p>CTRL+C will copy your current settings as a string to your clipboard, and CTRL+V can be used to load them back in if you need to change something.</p> <p>To use this, you'd want to copy the first tab of code to your cart, and remove some of the example stuff (like collision tests which are funky anyway). Create a handful of bullet patterns, and use</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>local attack_pattern_1 = pattern_from_string(&quot;curve=5&gt;speed=1&quot;) -- string from configurator local attack_pattern_2 = pattern_from_string(&quot;spin=20,fire_rate=20&quot;) local boss = {x=50,y=50} --activate attack pattern 1. Will be centered on boss location as it moves. add_pattern(boss, attack_pattern_1)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=38837 https://www.lexaloffle.com/bbs/?tid=38837 Thu, 16 Jul 2020 02:33:24 UTC Mouse no longer works in HTML exports in 0.2.1 <p> <table><tr><td> <a href="/bbs/?pid=78870#p"> <img src="/bbs/thumbs/pico8_danewumubu-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78870#p"> danewumubu</a><br><br> by <a href="/bbs/?uid=45242"> Billiam</a> <br><br><br> <a href="/bbs/?pid=78870#p"> [Click to Play]</a> </td></tr></table> </p> <p>As of 0.2.1, mouse handling does not seem to work in HTML exports, though touch controls (and emulated touch controls with chrome dev tools) seem to be working.. It's fine in pico-8 and bin exports though, and in the BBS.</p> https://www.lexaloffle.com/bbs/?tid=38670 https://www.lexaloffle.com/bbs/?tid=38670 Sat, 04 Jul 2020 03:59:42 UTC HTML and bin exports crashing in 0.2.1 <p>After updating to 0.2.1, exports of my cart are failing to load. I've deleted just about everything from it to make a minimal reproduction here, but I have no idea what is going on.</p> <p>For both HTML and bin exports, the pico-8 splash appears, and it hangs after &quot;booting cartridge&quot;</p> <p>In the included cart, both the comment at the bottom and the init method are required. Deleting the init method, or any more from the comment will allow the cart to load. O_o</p> <p> <table><tr><td> <a href="/bbs/?pid=78869#p"> <img src="/bbs/thumbs/pico8_bizehapowe-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78869#p"> bizehapowe</a><br><br> by <a href="/bbs/?uid=45242"> Billiam</a> <br><br><br> <a href="/bbs/?pid=78869#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=38669 https://www.lexaloffle.com/bbs/?tid=38669 Sat, 04 Jul 2020 03:05:49 UTC Simple benchmarking <p> <table><tr><td> <a href="/bbs/?pid=78528#p"> <img src="/bbs/thumbs/pico8_jufohibzu-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=78528#p"> Benchmark</a><br><br> by <a href="/bbs/?uid=45242"> Billiam</a> <br><br><br> <a href="/bbs/?pid=78528#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a basic, and not very efficient benchmarking/profiling cart.</p> <p>It can handle simple nesting and repeated calls for a given label, averaging the results.</p> <p><strong>Usage</strong></p> <p>Begin and end profiling:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>bm(&quot;Label&quot;) -- code bm()</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Call at the beginning of update to clear stored data:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>bm:reset()</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Enable or disable benchmarking:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>bm:toggle()</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Show benchmarking results when enabled:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>bm:draw()</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=38566 https://www.lexaloffle.com/bbs/?tid=38566 Fri, 26 Jun 2020 05:28:25 UTC