japhib [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=44101 New PICO-8 LS feature: Code Formatting <p>Just released a new feature for my VSCode plugin PICO-8 LS: Code formatting! (<a href="https://marketplace.visualstudio.com/items?itemName=PollywogGames.pico8-ls">Link to install VSCode extension</a>)</p> <p>IMO it's most useful for making minified code from e.g. a tweetcart more readable. Example:</p> <img style="margin-bottom:16px" border=0 src="/media/44101/giphy.gif" alt="" /> <p>(The code snippet above is the excellent TweetTweetJam entry XTRIS, by Fletch: <a href="https://fletchmakesstuff.itch.io/xtris">https://fletchmakesstuff.itch.io/xtris</a>)</p> <p>Note that it's accessible in multiple ways:</p> <ol> <li>The regular <code>Format Document</code> command in VSCode (alt+shift+F is the default keyboard shortcut)</li> <li><code>Command Palette</code> -&gt; <code>PICO-8 LS: Format File</code> for regular code formatting</li> <li><code>Command Palette</code> -&gt; <code>PICO-8 LS: Format File: Each Statement on Separate Line</code> which will put each statement on a separate line. (By default, the formatter lets multiple statements be on the same line, preserving your cart structure.) This is the command used in the GIF above.</li> </ol> <p>Please be careful when using this tool, and save a backup of your cart before formatting it! Since this is the first time it's being released, there may still be issues to work through.</p> <p>Big thanks to <a href="https://www.lexaloffle.com/bbs/?uid=67168">beetrootpaul</a> for help implementing this feature!</p> <p>Report any issues here: <a href="https://github.com/japhib/pico8-ls/issues">https://github.com/japhib/pico8-ls/issues</a></p> https://www.lexaloffle.com/bbs/?tid=52800 https://www.lexaloffle.com/bbs/?tid=52800 Fri, 19 May 2023 16:39:58 UTC pico8-ls: a VSCode Language Server for PICO-8 <p>I've always been frustrated by how low-tech the dev environment feels for PICO-8, so I finally decided to do something about it. Introducing:</p> <h1>PICO-8 Language Server for VSCode</h1> <p>pico8-ls is a full-featured language extension for VSCode. It gives the full IDE experience, as if you were developing with Javascript, Java, Python, C#, etc.</p> <p><strong>Download here:</strong> <a href="https://marketplace.visualstudio.com/items?itemName=PollywogGames.pico8-ls">pico8-ls - VSCode Marketplace</a></p> <p>This extension has full support for the PICO-8 dialect of Lua - which means you don't have to move your code into a .lua file, or go through and remove all the += to get the Lua extension to work!</p> <p>Here are some other useful features:</p> <ul> <li>Go to definition</li> <li>Find references</li> <li>Warning on undefined variable usage</li> <li>Get documentation for built-in functions by hovering over them</li> <li>Support for &quot;#include&quot;ing other files</li> </ul> <p>Demo of hover-docs, auto-complete, and signature help:</p> <img style="margin-bottom:16px" border=0 src="/media/44101/docs.gif" alt="" /> <p>My most proud achievement is getting the #include statements to work, since go-to-definition and find-references both work across #include file boundaries. Demo of that working:</p> <img style="margin-bottom:16px" border=0 src="/media/44101/includes.gif" alt="" /> <p>Anyways, I hope you find it useful! If you find any issues, please file an issue for them on GitHub:</p> <p><a href="https://github.com/japhib/pico8-ls/issues">pico8-ls Issues on GitHub</a></p> https://www.lexaloffle.com/bbs/?tid=48169 https://www.lexaloffle.com/bbs/?tid=48169 Wed, 15 Jun 2022 21:57:07 UTC duck_pond.exe <p> <table><tr><td> <a href="/bbs/?pid=87139#p"> <img src="/bbs/thumbs/pico8_duck_pond-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87139#p"> duck_pond</a><br><br> by <a href="/bbs/?uid=44101"> japhib</a> <br><br><br> <a href="/bbs/?pid=87139#p"> [Click to Play]</a> </td></tr></table> </p> <p>This was mainly a study for me on making interesting-looking water with basic reflection/distortion. I think it turned out fun. Just relax by the pond and watch the ducks.</p> <img style="margin-bottom:16px" border=0 src="/media/44101/ducks_0.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=41379 https://www.lexaloffle.com/bbs/?tid=41379 Tue, 02 Feb 2021 23:33:02 UTC Stranded on Saturn - a Commander Keen demake <p> <table><tr><td> <a href="/bbs/?pid=86621#p"> <img src="/bbs/thumbs/pico8_stranded_on_saturn-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=86621#p"> stranded_on_saturn</a><br><br> by <a href="/bbs/?uid=44101"> japhib</a> <br><br><br> <a href="/bbs/?pid=86621#p"> [Click to Play]</a> </td></tr></table> </p> <p>Stranded on Saturn - a demake of Commander Keen 1-3. Pogo your way through 4 huge levels to find the Bean With Bacon Megarocket and escape back to Earth!</p> <p>Controls:</p> <p>(o) or z - jump<br /> (x) or x - get out/put away pogo stick</p> <p>Hold jump while pogoing to go a lot higher!</p> <img style="margin-bottom:16px" border=0 src="/media/44101/keen2_2.gif" alt="" /> <p>Collect lollipops, sodas, and Vorticon teddy bears for an extra challenge. These are totally optional and just serve as an extra objective for those that are interested (much like the strawberries in Celeste).</p> <img style="margin-bottom:16px" border=0 src="/media/44101/keen2_1.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=41218 https://www.lexaloffle.com/bbs/?tid=41218 Wed, 20 Jan 2021 19:34:59 UTC Stranded On Saturn - WIP Commander Keen Demake - Lvl <p> <table><tr><td> <a href="/bbs/?pid=76667#p"> <img src="/bbs/thumbs/pico8_stranded_on_saturn-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=76667#p"> stranded_on_saturn</a><br><br> by <a href="/bbs/?uid=44101"> japhib</a> <br><br><br> <a href="/bbs/?pid=76667#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a tribute/demake to the original, oldschool Commander Keen games! Still very much a work in progress. The first level is done. Updated 12/30/2020</p> https://www.lexaloffle.com/bbs/?tid=37975 https://www.lexaloffle.com/bbs/?tid=37975 Fri, 15 May 2020 20:25:54 UTC