JoshK [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=45041 bump.lua simple demo (ported to picotron) <h1>bump.lua</h1> <h2>(and bump.lua simple demo)</h2> <p>I ported the 'bump.lua' collision library &amp; 'bump.lua simple demo' to Picotron.<br /> Due to the considerate way the library was built, this was actually a pretty easy process :)</p> <p>bump.lua: <a href="https://github.com/kikito/bump.lua">https://github.com/kikito/bump.lua</a><br /> bump.lua simple demo: <a href="https://github.com/kikito/bump.lua/tree/simpledemo">https://github.com/kikito/bump.lua/tree/simpledemo</a></p> <p>Please take note of file 'MIT-LICENSE.txt' found inside the cart. This is not CC.<br /> <table><tr><td> <a href="/bbs/?pid=155562#p"> <img src="/bbs/thumbs/pico64_bump_simple_demo-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=155562#p"> bump_simple_demo</a><br><br> by <a href="/bbs/?uid=45041"> JoshK</a> <br><br><br> <a href="/bbs/?pid=155562#p"> [Click to Play]</a> </td></tr></table> </p> <h3>bump.lua</h3> <p>Lua collision-detection library for axis-aligned rectangles. Its main features are:</p> <ul> <li>bump.lua only does axis-aligned bounding-box (AABB) collisions.<br /> If you need anything more complicated than that (circles, polygons, etc.)<br /> give HardonCollider a look. (I don't believe anyone has ported this to Picotron)</li> <li>Handles tunnelling - all items are treated as &quot;bullets&quot;.<br /> The fact that we only use AABBs allows doing this fast.</li> <li>Strives to be fast while being economic in memory.</li> <li>It's centered on <em>detection</em>, but it also offers some (minimal &amp; basic) collision <em>response</em>.</li> <li>Can also return the items that touch a point, a segment or a rectangular zone.</li> <li>bump.lua is <em>gameistic</em> instead of realistic.</li> </ul> <p>bump is ideal for:</p> <ul> <li>Tile-based games, and games where most entities can be represented as axis-aligned rectangles.</li> <li>Games which require some physics, but not a full realistic simulation - like a platformer.</li> <li>Examples of genres: top-down games (Zelda), shoot 'em ups, fighting games (Street Fighter),<br /> platformers (Super Mario).</li> </ul> <p>bump is not a good match for:</p> <ul> <li>Games that require polygons for the collision detection.</li> <li>Games that require highly realistic simulations of physics - things &quot;stacking up&quot;, &quot;rolling over slides&quot;, etc.</li> <li>Games that require very fast objects colliding realistically against each other (in bump, being gameistic, objects are moved and collided one at a time).</li> <li>Simulations where the order in which the collisions are resolved isn't known.</li> </ul> <h3>bump.lua simple demo:</h3> <p>This simple demo creates a world populated by random boxes, and allows to move a player around<br /> using the keyboard arrow keys.<br /> The player has constant velocity and can will &quot;slide&quot; over the boxes without penetrating them,<br /> similarly to some classic games such as Zelda.</p> <p>Pressing TAB will display some debug information.</p> https://www.lexaloffle.com/bbs/?tid=144687 https://www.lexaloffle.com/bbs/?tid=144687 Thu, 10 Oct 2024 18:25:41 UTC FileSearch <h1>FileSearch</h1> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/45041/4_video_3.gif" alt="" /> <h2>Easily search for files in Picotron</h2> <p><strong>Download now:</strong> <code>load #filesearch</code></p> <h3>How to use:</h3> <ul> <li>Type your query</li> <li>Press Enter <ul> <li>Click the icon to launch to file in its preferred program</li> <li>Click the path to open it in FileNav</li> </ul></li> </ul> <h3>Think you can do better?</h3> <p>Prove it!<br /> If you're feeling brave you're welcome to dive into my code and take whatever you want for your own carts :D<br /> The FileSearch function in fileSearch.lua will be a good place to start. Also check out jaroWinkler.lua for an example of a similarity function. And you're welcome to ask me how any of this works, but I do not guarantee that I will remember anything :P</p> <h3>Thanks to:</h3> <ul> <li>abledbody for their QuickSort implementation: <a href="https://www.lexaloffle.com/bbs/?tid=142305">https://www.lexaloffle.com/bbs/?tid=142305</a></li> <li>Matthew A. Jaro &amp; William E. Winkler for the Jaro&ndash;Winkler distance: <a href="https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance">https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance</a></li> <li>369px for their fantastic GUI tutorials: <a href="https://www.youtube.com/@369px">https://www.youtube.com/@369px</a></li> </ul> https://www.lexaloffle.com/bbs/?tid=144513 https://www.lexaloffle.com/bbs/?tid=144513 Mon, 30 Sep 2024 22:37:31 UTC Earth <p> <table><tr><td> <a href="/bbs/?pid=146715#p"> <img src="/bbs/thumbs/pico64_earth-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=146715#p"> earth</a><br><br> by <a href="/bbs/?uid=45041"> JoshK</a> <br><br><br> <a href="/bbs/?pid=146715#p"> [Click to Play]</a> </td></tr></table> </p> <p>I saw this post on stackoverflow and thought I'd give it a go in Picotron :P<br /> <a href="https://gamedev.stackexchange.com/questions/147193/imitate-a-textured-sphere-in-2d">https://gamedev.stackexchange.com/questions/147193/imitate-a-textured-sphere-in-2d</a></p> <p>The earth texture is a downscaled version from this site: <a href="https://planetpixelemporium.com/earth8081.html">https://planetpixelemporium.com/earth8081.html</a></p> <p>Change Log:<br /> 1.1 - Optimised! From 160% cpu usage to 80% (when rendering a 64*64 pixel image)</p> https://www.lexaloffle.com/bbs/?tid=141747 https://www.lexaloffle.com/bbs/?tid=141747 Mon, 15 Apr 2024 21:26:27 UTC Mandelbrot Set <p> <table><tr><td> <a href="/bbs/?pid=146490#p"> <img src="/bbs/thumbs/pico64_mandelbrot_set-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=146490#p"> mandelbrot_set</a><br><br> by <a href="/bbs/?uid=45041"> JoshK</a> <br><br><br> <a href="/bbs/?pid=146490#p"> [Click to Play]</a> </td></tr></table> </p> <p>WARNING - This takes a ~10s to render so please be patient :P</p> <p>A naive approach to rendering the Mandelbrot set.<br /> I made this because I wanted to get a better understanding of the maths behind it, so I focused on making the code readable, not fast.</p> <p>You can customise the colour by changing the parameters of the 'Gradient' function at the top of _init.</p> <p>You could use this as a screensaver if you really wanted, but I wouldn't recommend it due to how long it takes to load...</p> https://www.lexaloffle.com/bbs/?tid=141681 https://www.lexaloffle.com/bbs/?tid=141681 Fri, 12 Apr 2024 21:17:18 UTC ExternalLog <p> <table><tr><td> <a href="/bbs/?pid=145829#p"> <img src="/bbs/thumbs/pico64_external_log-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145829#p"> external_log</a><br><br> by <a href="/bbs/?uid=45041"> JoshK</a> <br><br><br> <a href="/bbs/?pid=145829#p"> [Click to Play]</a> </td></tr></table> </p> <p><strong>ExternalLog</strong><br /> A basic Log window that can be used with any windowed cart<br /> Running this will open a readme.txt with this same text in it<br /> Look inside to find the actual ExternalLog.lua file<br /> Also see 'Example.lua' to see how to use this</p> <p><strong>Simple Usage</strong></p> <ol> <li>Place ExternalLog.lua into the same directory as your main.lua</li> <li>Inlcude the ExternalLog.lua file with: include(&quot;ExternalLog.lua&quot;)</li> <li>Call ExternalLogWindow() in _init()</li> <li>Call Log(&quot;Hello World&quot;) to add a log message</li> </ol> <p><strong>Other Features</strong><br /> PassPrintToLog():<br /> Call this in _init to be able to use print() to send Log messages<br /> (you can also pass 'false' as a parameter to disable regular printing)<br /> LogMenuItems(OPEN_SHORTCUT, CLEAR_SHORTCUT):<br /> Call this to create menuitems for opening and clearing the Log<br /> (OPEN_SHORTCUT &amp; CLEAR_SHORTCUT should be strings in the form &quot;CTRL-X&quot;)</p> https://www.lexaloffle.com/bbs/?tid=141474 https://www.lexaloffle.com/bbs/?tid=141474 Fri, 05 Apr 2024 19:49:17 UTC Downloader - GUI for downloading carts from the BBS <p> <table><tr><td> <a href="/bbs/?pid=145411#p"> <img src="/bbs/thumbs/pico64_downloader-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145411#p"> Downloader 2.0</a><br><br> by <a href="/bbs/?uid=45041"> JoshK</a> <br><br><br> <a href="/bbs/?pid=145411#p"> [Click to Play]</a> </td></tr></table> </p> <p>A windowed app that should make downloading carts a lil' easier!</p> <p>How to use:</p> <ol> <li>Select a download destination with the dropdown menu.<br /> NOTE: You can click 'Edit' to customise the options available - Make sure to save the .pod &amp; restart Downloader for your changes to take effect.</li> <li>Click the 'Cart ID' field to enter the Cart ID you want to download.<br /> NOTE: You can use CTRL-V to paste your Cart ID - you don't even need to select the field first!</li> <li>[OPTIONAL] Edit the 'Cart Name' to change what the name of the file will be after downloading - it will default as the Cart ID.</li> <li>Click 'DOWNLOAD'</li> <li>[OPTIONAL] Click 'Open' to open the destination folder, for easy access to your downloaded cart!</li> </ol> <p>Important Info:<br /> This app will auto create the destination directory if it doesn't exist when you click DOWNLOAD!<br /> If that directory is 'Screensavers' or 'Wallpapers', it will also copy over the default carts from the corrosponding /system/ folder.</p> <p>Also, the colours are based on your theme, so if you think it's ugly... I'm blaming you :P</p> https://www.lexaloffle.com/bbs/?tid=141364 https://www.lexaloffle.com/bbs/?tid=141364 Mon, 01 Apr 2024 23:23:59 UTC