zep [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=1 Lexaloffle BBS v4.0 <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/bbs40_7.gif" width=256 height=256 alt="" /> <p>I never imagined I'd be excited about releasing a website update, but here it is! This update addresses many ancient bugs and issues, but also aims to support the PICO-8 / Voxatron fantasy console ecosystem. There are new features to make collaboration, sharing, teaching and exploring carts a little easier. </p> <p>lexaloffle.com is now also running on a new server, on top of a leaner stack that should be much more responsive. Along with a lot of new code running underneath it all, there will still be some new bugs to deal with (apologies to those who were around earlier this week for the bumpy migration process!) -- feel free to report any issues in the comments here, or in the PICO-8 <a href="/bbs/?cat=7#sub=6">bugs</a> sub-forum.</p> <h2>New Features</h2> <h3>Superblog</h3> <p>View a feed of everything going on using the <a href="/bbs/superblog.php">Superblog</a>. You can also follow other users to create a tailored feed.</p> <h3>Featured Carts</h3> <p>The list of featured carts (same as in SPLORE) is now sorted by the time each cart was added to the list, so that it's possible to come back periodically and see what's new without digging too much for notable releases. Selection will be based on a combination of user interaction, manual curation, and the phase of the moon. To kick things off, the first few pages of the old featured lists will be fed through a few carts per day.</p> <p>Featured cartridges also now show up on the main PICO-8 product page. I went with a whirlpool format, where newly featured carts start out big on the left and then get sucked down. </p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/featured_carts.png" width=521 height=198 alt="" /> <p>(this screenshot is from my test server -- you can see the live version <a href="lexaloffle.com/pico-8.php">here</a>)</p> <h3>Custom Cart IDs and Versioning</h3> <p>When submitting a cartridge, you can now choose an alphanumeric id, for example: &quot;spooky_forest&quot;. A revision number is automatically appended to the id: &quot;spooky_forest-0&quot;. To refer to the most recent version of a cart, you can optionally use the id without the revision number: LOAD(&quot;#SPOOKY_FOREST&quot;) will download the most recent version.</p> <h3>Unlisted Cartridges</h3> <p>Unlisted carts can now be played online by anyone who knows the id: <a href="https://www.lexaloffle.com/bbs/cart_info.php?cid=silly_tree">https://www.lexaloffle.com/bbs/cart_info.php?cid=silly_tree</a></p> <p>This can be useful if you want to send someone (or yourself) a cartridge in a semi-private way. The id defaults to a relatively non-guessable string for this reason.</p> <h3>Cart Menu</h3> <p>The cart player now has an extra pull-out menu (top right) that displays more cartridges by the same author, along with some featured carts and a random cart for good luck. This selection is not currently aware of context (e.g. which carts you already visited), so it's not a great way to surf around more than a handful of carts, but I'm hoping it will draw at least a few hapless visitors into the rabbit hole.</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/cart_menu.png" width=380 height=328 alt="" /> <h3>Embedding</h3> <p>If you'd like your cartridge to be embeddable on other websites, there is now an option on the submission page, or enable it on existing carts by pressing the 'edit' link under the cart player.</p> <h3>Notifications</h3> <p>Each thread has a little notification button that can be toggled: <img style="" border=0 src="https://www.lexaloffle.com/gfx/set_watch1.png" alt="" /></p> <p>Any new replies to a thread you are subscribed to, or any @ mention of your username (e.g. <a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a>) will trigger an email notification. These can be muted with a global option under <a href="/settings.php">Settings</a> if they become annoying.</p> <h3>Drafts and Unlisted Threads</h3> <p>New posts can be saved as a draft, and then retrived from your profile page under the 'Posts' section.</p> <p>If you would like to create a thread that can be viewed via a secret url, you can also create an unlisted thread. Mentioning another user in an unlisted thread will only notify them if they have already posted there. Unlisted threads are handy for things like allowing other people to comment on drafts, semi-open invitations to collaborate or test ideas, and class / workshop threads where participants can share their work without having to make a more visible BBS thread.</p> <h3>Community Tags</h3> <p>Community tags can be added to any post by any user. There are just two tags for the moment: </p> <ul> <li> <p>Posts tagged with Mature Content will not be visible in SPLORE when the content_filter is set to 2 in config.txt (this will be easier to set up in future!).</p> </li> <li>Post tagged as spam will go under review to be removed. If your account is older than the posts account when you flag it as spam, the post contents are instantly hidden (plus a few minutes for caching to catch up) until it is reviewed. This is to limit the potential for shenanigans from relatively new users.</li> </ul> <h3>User Profiles</h3> <p>If you look under your <a href="/settings.php">Settings</a> page, you'll find a place to put a homepage link, plus any social media account names. These show up as little buttons under your name, and at the top of your profile page. There are also options to make your likes and/or favourites lists public from your profile &gt; Carts page.</p> <p>In the pull-down menu next to each post you can also find an option to pin up to 3 posts to the top of your profile. Alternatively, whole playable cartridges can be included in the &quot;About&quot; field using [# followed by the cart id, followed by #].</p> <h3>Puffin CAPTCHA</h3> <p>Unfortunately there seems to still be a bunch of sleeper spam accounts to be weeded out over time, but it now a little harder for spammers to join up:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/puffin.png" alt="" /> <p>To be honest, this is not a very difficult CAPTCHA to defeat, but I'm counting on it not being worth any potential spammer's time to solve it just for one website. And if it came to it, I think we could make new carts faster than spammers can automate their solutions. (SPAMJAM?)</p> <h3>New Cart Players</h3> <p>Both the Voxatron 0.3.5 and PICO-8 0.1.12 players are live! There isn't much to see yet except for a new boot screen in Voxatron, but both players are needed before the binary updates are available to handle newer BBS features. But updates for both are also around the corner.</p> <h3>Missing features</h3> <p>Some things didn't survive the migration (yet), or are unfinished:</p> <ul> <li> <p>The 'Code' and 'Copy' buttons on the cart players are missing. I don't think we need copy anymore, because it is easier just to LOAD(&quot;#FOO&quot;) from inside PICO-8. I miss the Code button, which will return at some point, but possibly in a different form.</p> </li> <li>The GFX, SFX snippets and Tutorial sub-forums are empty because they're new. I've re-organised the way sub-forums are presented (now under 4 broad categories: Carts, Community, Snippets and Support), and the old Graphics and Music subs didn't fit very well. They only had a couple of pages of posts each, so I've bumped them into their respective authors' blogs for now.</li> </ul> https://www.lexaloffle.com/bbs/?tid=32374 https://www.lexaloffle.com/bbs/?tid=32374 Thu, 29 Nov 2018 18:42:04 UTC PICO-8 0.1.11 <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/pico8_0111_flier.png" width=512 height=288 alt="" /> <p>Hey Everyone! PICO-8 0.1.11d builds are now live on <a href="https://www.lexaloffle.com/games.php?page=updates">Lexaloffle</a> and <a href="https://www.humblebundle.com/home/library">Humble</a>! We are still working on CHIP / Pocket CHIP builds -- I'll update this thread when they are live. [Edit: they're <a href="https://www.lexaloffle.com/bbs/?pid=48085#p48085">live now</a> with 0.1.11g]</p> <h2>Welcome to the Core</h2> <p>Despite the unassuming version number of 0.1.11, this update marks something of a milestone: The core of PICO-8 is now feature-complete, with API and specifications that are likely to remain fixed. Before it becomes entombed as a read-only blob of C code however, there is still some time before beta to address any issues that crop up. Let's see how 0.1.11 works out and what points of friction emerge.</p> <p>One of the goals of PICO-8 is to create a stable, familiar medium in contrast to the shifting sands of modern software development. Instead of growing by changing the core of PICO-8 over time, I'm aiming to settle on a minimal, eternal component that can be built on top of (improved tools and bbs integration), extended sideways (extra ports / host platform support), built out from the inside (making useful snippets and carts!), and around (nicer BBS, cartverse, documentation, resources and community events). </p> <p>v0.1.11 is also the point after which PICO-8 and Voxatron co-development start to part ways -- Voxatron's API and specification is a superset of PICO-8 v0.1.11's. The upcoming Voxatron update looks basically like a 3D PICO-8, with its own version of splore, png cart format, labels, and bbs integration. I messed up the Voxatron release plan partly because of committing to this -- but more on this later in a separate post. o(<em>_</em> <em>_</em>)o</p> <p>Many thanks to the numerous PICO-8 users who helped iron out bugs in the 0.1.11 release candidates. I snuck 0.1.11 out via twitter thinking it was pretty solid, but it took 3 more builds to get right. If you find any old carts that don't run or behave strangely, please ping me on <a href="www.twitter.com/lexaloffle">twitter</a>, or better still, post a bug report in the support forum. There will be another follow-up (0.1.12) to catch any left-over issues. After that it will be onwards to beta (0.2.0) \o/</p> <p>Also special thanks to <a href="https://www.lexaloffle.com/bbs/?uid=11292">Gruber</a> for help with the SFX editor, <a href="https://www.lexaloffle.com/bbs/?uid=556">rez</a> for helping shape fill patterns &amp; cpu changes, and everyone who posted thoughts and suggestions on the BBS -- many of which I folded into this update. I haven't posted much this year due to going into blinkers-on just-make-the-thing mode, but I do read and appreciate every piece of feedback. I'll be re-visiting some older posts to update how things have turned out, and I'm also looking forward to joining the party and making some more carts too :D</p> <h2>New Features</h2> <h3>Binary Exporters</h3> <p>PICO-8 can now generate stand-alone, distributable binary versions of carts and multicarts for Windows, MacOS and 64-bit Linux (dynamically linked with SDL2). Use the export command with a .BIN target, with the -I switch to choose an icon (or skip to use the cart label by default):</p> <div> <div style="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>&gt; EXPORT JELPI.BIN -I 48 JELPI.BIN JELPI.BIN/WINDOWS JELPI.BIN/LINUX JELPI.BIN/JELPI.APP</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Multicarts can be created the same way as exporting HTML -- just add up to 15 .p8 or .p8.png filenames at the end of the EXPORT command. Bundled carts behave just the same as local files -- they can be RELOAD()ed, CSTORE()ed to, and chain loaded with LOAD(), using the new breadcrumb and parameter features explained below.</p> <h3>SFX Instruments</h3> <p>Until 0.1.10, each of the 32 notes in a SFX were internally described with 15 bits: 6 for pitch, 3 each for instrument, volume and effect. 0.1.11 adds one extra bit to round out the 2 bytes: &quot;SFX instrument mode&quot; that can be set by toggling the button to the right of the instruments list.</p> <p>When it is set, the instrument buttons turn into indexes 0..7, and when placing notes you'll see the instrument index appear green instead of pink. Instead of playing the built-in instrument, these notes will trigger the <em>SFX</em> of that index. In other words, SFX 0..7 are acting as instrument <em>definitions</em>. Each note will advance at the same speed as the definition, with the pitch shifted (relative to C-2), the volume multiplied, and the effects layered on top of each other. This can be used to reach a greater range of pitches, create per-note changes in texture and tone, and set up detailed volume envelopes.</p> <p>Here's a rundown of other new SFX editing features, and a quick introduction to SFX instruments by <a href="https://www.lexaloffle.com/bbs/?uid=11292">Gruber</a> (check out the other tutorials too!): </p> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/Yr-1SfOltv4&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/Yr-1SfOltv4&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> <h3>Fill Patterns</h3> <p>Along with SFX instruments, fill patterns are a late addition to the PICO-8 spec. In both cases I was planning to keep them as secret features, but they turned out to be too much fun and I couldn't wait! From the manual:</p> <div> <div style="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>fillp p The PICO-8 fill pattern is a 4x4 2-colour tiled pattern observed by: circ() circfill() rect() rectfill() pset() line() p is a bitfield in reading order starting from the highest bit. To calculate the value of p for a desired pattern, add the bit values together: .-----------------------. |32768|16384| 8192| 4096| |-----|-----|-----|-----| | 2048| 1024| 512 | 256 | |-----|-----|-----|-----| | 128 | 64 | 32 | 16 | |-----|-----|-----|-----| | 8 | 4 | 2 | 1 | '-----------------------' For example, FILLP(4+8+64+128+ 256+512+4096+8192) would create a checkerboard pattern. This can be more neatly expressed in binary: FILLP(0b0011001111001100) The default fill pattern is 0, which means a single solid colour is drawn. To specify a second colour for the pattern, use the high bits of any colour parameter: FILLP(0b0011010101101000) CIRCFILL(64,64,20, 0x4E) -- brown and pink An additional bit 0b0.1 can be set to indicate that the second colour is not drawn. FILLP(0b0011010101101000.1) -- checkboard with transparent squares </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p><blockquote class="twitter-tweet" data-lang="en"><a href="https://twitter.com/chiptune/status/909509238531198976">#tweet#</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></p> <h3>Code Tabs</h3> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/code_tabs.png" width=384 height=188 alt="" /> <p>You can now organise your code into numbered tabs. They are not separate files, but rather the same block of code chopped up with special markers (internally: &quot;--&gt;8&quot;). Hovering over a tab number displays the first line of code if is commented, which can be used as a makeshift method of naming tabs. To remove the right-most tab, just delete all of the text in the tab and then move off it.</p> <p>Editing operations like undo, search and selections apply per-tab. It isn't currently possible to search across tabs -- this will be added later along with improved error messages that span multiple tabs.</p> <h3>Commandline Scripts</h3> <p>The new -x parameter to PICO-8 can be used to run carts as part of commandline tool chains. For example, if you have a long-winded process for copying data around and generating large multicarts, you could automate the process by creating a single cart that does the job:</p> <div> <div style="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>-- BUILD.P8 CD(&quot;MYPROJ&quot;) LOAD(&quot;TITLE.P8&quot;) EXPORT(&quot;MYGAME.BIN -I 1 LEVEL1.P8 LEVEL2.P8 LEVEL3.P8&quot;)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>And then run PICO-8 from commandline:</p> <div> <div style="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>$ pico8 -x build.p8 EXPORT /home/zep/pico8/carts/myproj/mygame.bin -i 1 level1.p8 level2.p8 level3.p8</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>This will execute each line of build.p8 as if it had been typed in from a fresh boot of PICO-8, but without ever opening a window. It isn't truely headless yet because it still requires SDL2 (along with the video/audio driver) -- e.g. you can still play sound from it. I'll look at improving this in the future for people who want to make twitter bots and whatnot.</p> <h3>HTML Templates / Plates</h3> <p>This is still a work in progress as I don't have any sample plates to offer yet! But the basic concept works: you can put html files in {app_data}/pico-8/plates, and use them as templates for the html exporter. The template should include a magic string (&quot;##js_file##&quot;) in place of the accompany javascript file's name:</p> <div> <div style="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>&lt;script async type=&quot;text/javascript&quot; src=&quot;##js_file##&quot;&gt;&lt;/script&gt;</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>The template (in this example, one_button.html) can then be used when exporting like so: </p> <div> <div style="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>&gt;EXPORT FOO.HTML -P ONE_BUTTON</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>The P is for 'Plate'. I use this more general term because they can act both as templates (custom control schemes like single-button, or to add technical javascript features) and also as faceplates (custom graphics around the PICO-8 screen e.g. based on the theme of the game). When doing the next round of website updates, I'll look at creating a way to submit plates as a community resource.</p> <p>It is also possible in 0.1.11 to export the .js file separately (EXPORT FOO.JS) so that it is easier to work on the accompanying .html in the same folder as the exported cart.</p> <h3>Splore Menu</h3> <p>An extra per-cart menu can be accessed from splore by pressing the menu button (X and O still immediately launch the cart as before). This menu allows you to open the cart's BBS thread, remove it from favourites, and open a minimal options menu. The options menu includes SHUTDOWN which allows PICO-8 to be used from start to finish with only a controller (in -splore mode).</p> <p>Extra splore tip that I forgot to mention in the docs: instead of typing SPLORE, you can use just S.</p> <h2>API Changes</h2> <ul> <li>add() returns the value that was added</li> <li>assert() can take an optional error message parameter </li> <li>coresume() returns an error, making it useful to wrap with assert: assert(coresume(foo))</li> <li>getmetatable()</li> <li>sfx() takes a 4th parameter: number of notes to play</li> </ul> <h3>Time and Date</h3> <p>You can now grab the current local and GM time with stat():</p> <div> <div style="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> 80..85 UTC time: year, month, day, hour, minute, second 90..95 Local time</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Check out the <a href="https://www.lexaloffle.com/bbs/?tid=30199">ClockJam</a>!</p> <p> <table><tr><td> <a href="/bbs/?pid=45923#p"> <img src="/bbs/thumbs/pico45944.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=45923#p"> 1st Clock Ever!</a><br><br> by <a href="/bbs/?uid=13845"> ultrabrite</a> <br><br><br> <a href="/bbs/?pid=45923#p"> [Click to Play]</a> </td></tr></table> </p> <h3>CPU Costs</h3> <p>There are many adjustments to the cost of calling api functions in 0.1.11. Some of them are due to fixing bugs including the ability to trick PICO-8 into giving back unlimited CPU cycles (!), some are to make costs feel more consistent with each other, to more accurately reflect the real world cost of the host machine (pffft -- like that matters), and finally to give a small bump to graphically intensive carts now that making 60fps carts is becoming more common.</p> <p>I've tried to tread lightly on the heavy optimisation work done by cartridge authors. For example, kragzeg's <a href="https://hackernoon.com/pico-8-lighting-part-1-thin-dark-line-8ea15d21fed7">technical articles on Dank Tomb</a> rendering are still true. The general rule is that existing carts will run around the same speed as before, or a little faster depending on the operations they use. In a few rare cases they run slightly slower, and I am humbly offering low-cost pattern filling as compensation :P</p> <ul> <li>Horizontal scan fills are now super-fast (rectfill, circfill)</li> <li>sspr() is now the same speed as spr() per-pixel</li> <li>line() is faster -- but better to use rectfill() if axis-aligned</li> <li>bnot() and peek() cost 1 lua vm instruction more</li> <li>Fixed cost calculation of clipped gfx operations</li> </ul> <h2>Cartverse Preparation</h2> <p>The PICO-8 cartverse is a collection of interconnected webs of PICO-8 cartridges that can (optionally) exist independently of the BBS, and in the future the BBS will provide entry points to the cartverse rather than being a container for it. This update includes some of of the features needed to achieve this, and the are also useful separately:</p> <h3>BBS Cart Loading</h3> <p>Use <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">LOAD(&quot;#45481&quot;) to load a cartridge directly from the BBS. The number can (and normally should be) the <em>containing</em> post id, (not the id of the cart itself), in which case the most recent version of the cart is fetched. This can be called from a running cartridge, in which case the cartridge is immediately launched.</p> <h3>Breadcrumbs</h3> <p>Breadcrumbs allows the user to return to previous carts, much like the back button on a web browser. When LOAD()ing a cart, a second parameter can be used to request that the launched cart inserts an option in the pause menu to get back. The value of the parameter is the label of that button:</p> <p><span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">LOAD(&quot;#45481&quot;,&quot;BACK TO LAUNCHER&quot;)</p> <h3>Parameter Strings</h3> <p>The third parameter to LOAD() is an arbitrary string up to 1024 chars long that can be read by the receiving cart with <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">STAT(6). When using a breadcrumb to get back to a cartridge, the parameter that cartridge was initially run with is restored.</p> <p>The parameter string can also be set with RUN from the commandline: <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">RUN BLAH DE BLAH</p> <h3>Custom BBS Functionality</h3> <p>This isn't a feature by itself but can implemented using these new features. Because the cartverse sits alongside the BBS, it will be (and maybe already is) a viable way to extend the functionality of the BBS. For example: when hosting a jam, instead of having customized web-based theme selection, cart listings and voting, we can do it all with carts. An invite cart could have a countdown clock + a link to a separate theme voting cart when it becomes available, and then afterwards a voting cart could link to all the entries and store results voting on itself. There isn't yet a tidy way to send data back to the jam host, but there will be later! I will try this out for P8JAM3</p> <hr /> <p> <table><tr><td> <a href="/bbs/?pid=45508#p"> <img src="/bbs/thumbs/pico45507.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=45508#p"> PICO-8 0.1.11 CRACKED BY TIC TAC TOAD</a><br><br> by <a href="/bbs/?uid=12489"> kometbomb</a> <br><br><br> <a href="/bbs/?pid=45508#p"> [Click to Play]</a> </td></tr></table> </p> <p>:D</p> <p>Changelog:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div style="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>v0.1.11d Fixed: time() always returns 0 when there is no _update function Fixed: (raspi) Keyboard stops responding after pressing CTRL-F, CTRL-Z Fixed: (raspi) Double keypresses in sound editor when entering notes Fixed: stat(6) pads parameter string with spaces v0.1.11c Added: Local and UT time queries using stat() Added: host_framerate_control (config.txt) to improve performance on slower machines and web Added: Control over cpu useage when running in background (-background_sleep_ms / config.txt) Added: Windows icon in exported exe Added: F11 to toggle fullscreen Added: export -c switch to indicate transparent icon colour Added: show_backup_messages (config.txt) to turn off backup notifications Added: SFX instruments documentation in pico8.txt Added: Error message when trying to export carts with code size over the compressed limit Changed: If config.txt is not found, the same directory as the executable is searched Changed: If sdl_controllers.txt exists in the same directory as the executeable, it is processed first Changed: Shorthand if () statements must be written on a single line Fixed: reload() from bundled, non-primary cart in exported html multicart reads only original data Fixed: Exported binaries wrongly observe F7 (capture label) Fixed: Loading carts from earlier versions alters SFX data not intended for audio Fixed: Old version of fill patterns documentation near end of pico8.txt Fixed: 'backed up unsaved changes' message displayed during runtime for cstored() carts Fixed: PICO-8 runs too slowly when in background (new default background_sleep_ms: 20) Fixed: Saving screenshots and videos from exported binaries are named 0_* Fixed: Compressed size limit warning on save doesn't mention exported carts Fixed: btn(), btnp() don't work in infinite loops Fixed: btnp() timing inconsistent between 30fps / 60fps / during frame-skipping / with no _update Fixed: Can't move between channels while music is playing in song mode v0.1.11b Fixed: Preprocessor bug regressions: &quot;if (..) or&quot;, &quot;a.b -= c - d&quot; Fixed: Crash when pressing menu button on an empty favourites list v0.1.11 Added: Binary exporters (Windows, Linux, Mac OSX) Added: Code tabs Added: Splore cart menu Added: Fill patterns Added: Custom sfx instruments Added: load(&quot;#1234&quot;) to load [and run] a BBS cart Added: -x switch // execute a cart headless, for making command-line tools Added: Compressed size display and limit warning lights in code editor Added: CTRL-L to jump to a line number in code editor Added: numbers can be written in binary: 0b10100010 Added: tostr(), tonum() Added: extcmd(): audio_rec, audio_end to record all audio output. Added: ls() returns a list of local files if called while running Added: getmetatable() Added: coroutine error reporting // wrap coresume() in assert() Added: sfx() can take a 4th parameter: number of notes to play Added: Live sfx and music editing + better navigation controls Added: Transpose selected sfx notes relative to C by entering a note w/ SHIFT held Added: Insert and delete sfx rows with enter and backspace Added: Hidden note data is shown in sfx editor when relevant (slide, arps) Added: Warning displayed when unsaved changes backed up Added: Separate animation for downloading vs. loading a cart Added: export -p switch to supply a customized html template Added: Mousewheel when devkit mouse enabled: stat(36) // not supported in web Added: &lt; &gt; to change zoom level in gfx and map editors Changed: Rebalanced / fixed api cpu costs Changed: Screenshot and gif filenames based on current cart if available Changed: add() returns the added object Changed: removed global hpf on audio Changed: (sfx) can slide to volume 0 Changed: removed master low pass filter Changed: assert() can take an optional error_message parameter Changed: ? (shorthand for print()) can be prefixed by whitespace Changed: shl(), shr() return 0 if second parameter &gt;= 32 Changed: Automatically drop down to software blitting mode if opengl fails Changed: Lua memory limit set to 2MB (was 1MB) Changed: Some options (-width, -show_fps) apply only to the session; not saved to config.txt Updated: Internal game controller mappings from SDL_GameControllerDB Fixed: Pops &amp; clicks in audio when switching between playing SFX Fixed: Crash in audio mixer because of bad locking Fixed: Crash when loading .p8 files with more than 64k of code Fixed: Indexing of sparse tables fails after removing n/2 elements Fixed: Calling stat() inside an infinite loop crashes Fixed: Resetting cartridge corrupts cartridge data in range 0x5e00..0x5eff Fixed: Can not recover from a cart error caused by glitchy data on resetting Fixed: String-&gt;negative number conversion off by 0x0.0001 (-1 --&gt; 0xffff0001) Fixed: Crash when running cart closed to 64k char limit Fixed: Cursor can't move to the right of last character in code editor Fixed: Missing highlighted keywords: in, add, del, menuitem Fixed: Preprocessor bugs: &quot;a+=1+2\n*3&quot;, &quot;a+=(1)ba=42&quot;, &quot;a[(1)]+=1&quot; Fixed: Preprocessor performs replacements inside a string printed with ? Fixed: Display freezes when terminating a program running at &gt;100% cpu Fixed: Quick-running (CTRL-R) clobbers some editor state (e.g. current sprite page) Fixed: Loading a .p8 file with a future version reports a generic failure Fixed: alt-enter to toggle fullscreen also triggers pause menu Fixed: Splore scrolling jumps around when list gets too long</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=30219 https://www.lexaloffle.com/bbs/?tid=30219 Thu, 09 Nov 2017 03:15:15 UTC Carts in Carts <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/map_api.gif" width=400 height=300 alt="" /> <p>A heads up for Voxatron users -- the first version of the Lua api will be out next week in 0.3.5!</p> <p>Pictured above is the result of drawing voxels directly into a room's map. The 0.3.5 api also provides access to actor attributes and state, spawning, camera control, and direct access to the display. The entire PICO-8 api is in there with some 3D counterparts (line3d, box, sphere), and it's possible to import a pico-8 cart into the resource tree, place it in a room, and run the cart on a single slice of the display. The .p8 cart shows up in the resource navigator, and is placeable in the room like this:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8cart_in_voxcart.png" width=260 height=140 alt="" /> <p>The code can also be edited to make slight adjustments for the 3d display:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/jelpi3d.png" width=640 height=400 alt="" /> <p>In other news, I've updated the website with mobile-friendly cart listings and touch controls for the carts. It's still a work in progress -- the sound in particular is very choppy or missing altogether. But apart from that it is quite useable. If you have a modern phone or touch device please try it out!</p> https://www.lexaloffle.com/bbs/?tid=28325 https://www.lexaloffle.com/bbs/?tid=28325 Tue, 27 Dec 2016 14:46:41 UTC PICO-8 0.1.10 <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8_0110.png" width=256 height=256 alt="" /> <p>Hey All -- PICO-8 0.1.10 builds are now live on <a href="https://www.lexaloffle.com/games.php?page=updates">Lexaloffle</a> and <a href="https://www.humblebundle.com/home/library">Humble</a>! </p> <p><strong>Update: 0.1.10b is up with bugfixes for the html exporter.</strong> (<a href="https://www.lexaloffle.com/bbs/?pid=33364#p33364">Changes</a>)</p> <p><strong>Update2: 0.1.10c is up with fixed atan2()</strong></p> <p><h3>Multicart Exporter</h3>The EXPORT command can now be used to create a single .js (and .html) file that contains more than one cart. All of the carts can read, write, and run each other as if they were local files loaded from PICO-8. To do this, add the names of up to 15 extra cartridges you'd like to include in the export: (.p8 format only in 0.1.10)</p> <div> <div style="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> &gt; LOAD MENU.P8 &gt; EXPORT MEGACART.HTML JELPI.P8 DRIPPY.P8 CAST.P8 </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Inside the program, you can then use RELOAD() to grab data from other carts:</p> <div> <div style="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> -- GRAB JELPI'S SPRITESHEET RELOAD(0,0,0x2000,&quot;JELPI.P8&quot;) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Or load and run other carts:</p> <div> <div style="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> -- THIS WILL AUTOMATICALLY RUN THE CART LOAD(&quot;JELPI.P8&quot;) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>CSTORE() also works in this context, either for a cart to save over itself or to write data to other carts. Each time a different cartridge is accessed, you'll see the spinny cart animation to show that a swap is taking place.</p> <p>Multicart exports offer a way to package and distribute what you can already do with local files (e.g. zipping up a group of carts), but isn't supported on the BBS and probably never will be. I think feeling invited to design for single 32k carts is an important aspect of PICO-8, so separating multicarts to the exporter is a way to preserve that to some degree while still broadening the scope of what can be made with PICO-8. Future binary exporters (Windows, Mac, Linux) will also support multicart in the same way.</p> <p><h3>Glitchy Reset</h3>Resetting via the pause menu (press enter) now corrupts the ram in a semi-realistic way for a moment, just like some old hardware might. Carts glitch out in different ways depending on how they use the RAM! Here's <a href="https://www.lexaloffle.com/bbs/?tid=3421">Mistigri</a>:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8_reset_glitch.gif" width=256 height=256 alt="" /> <p><h3>New Demo Carts</h3>Use INSTALL_DEMOS to add BOUNCE.P8 and SORT.P8. These are intended to be useful for teaching basic programming and computer science concepts. Eventually PICO-8 will come with a bunch of printable lessons that refer to the built-in demos.</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8_sort_bounce.gif" width=256 height=256 alt="" /> <p><h3>Code Editor</h3>You can select and then tab / shift-tab to control indentation the selected lines of code. Also double-click to select a word, and ctrl-left/right skips across words.</p> <p><h3>EXTCMD</h3>This is function can be used to control taking screenshots and videos at precise times from within the code. From the manual:</p> <div> <div style="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> extcmd x Special system command, only works when running a local cart. Where x is a string: &quot;label&quot; set cart label &quot;screen&quot; save a screenshot &quot;rec&quot; set video start point &quot;video&quot; save a .gif </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p><h3>Raspberry Pi Improvements</h3>0.1.10 now includes wiringPi statically linked (for gpio), so you shouldn't need to install anything else in most cases. The dynamically linked binary is back too.</p> <p>I couldn't get the X11 driver to work with gles, so it defaults to rpi without windowed support. If anyone is keen to try building their own SDL2 with working X11 support, you can run pico8 with:</p> <div> <div style="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> env SDL_VIDEODRIVER=&quot;x11&quot; ./pico8_dyn </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>The mapped keyboard events for text input (SDL_TEXTINPUT) also seems to be broken for some raspis (so far observed on 2nd generation units), so 0.1.10 now detects if this is happening and uses a hard-coded US layout based on keydown events instead.</p> <p>Full changelog:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <pre><span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">v0.1.10 Added: Multi-cart export in html Added: Cart reset glitch Added: Demo carts: bounce, sort Added: .p8 format can now store cart labels Added: Splore navigation keys: pageup/down, home, end Added: Splore useage hint shown on empty favourites list Added: Warning on boot when data folder is read-only or can't be created Added: Pressing tab with code selected indents those lines (shift-tab to un-indent) Added: Double click word to select it Added: Trigger screenshot/video/label capture from inside program: extcmd() Changed: CTRL+left/right in code editor skips to end of word or span of non-whitespace Changed: When a cart terminates from splore, button press is required to continue Changed: load(&quot;@clip&quot;) can only be called from commandline (security) Fixed: Can over-allocate host memory if exceed it within one frame Fixed: atan2(-1, -32768) crash, and error for small values of dy Fixed: (Web) using cstore() on self causes unloadable cart (bug introduced in 0.1.8?) Fixed: (web) Pressing ctrl-v crashes the player (should do nothing) Fixed: (Raspberry Pi) WiringPi library required in static build Fixed: (Raspberry Pi) Crash on exit when launching via desktop icon Fixed: (Raspberry Pi) keyboard input broken (observed on raspi2s)</pre> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=28168 https://www.lexaloffle.com/bbs/?tid=28168 Wed, 07 Dec 2016 15:07:26 UTC PICO-8 0.1.9b <p>PICO-8 0.1.9b builds are now live on <a href="https://www.lexaloffle.com/games.php?page=updates">Lexaloffle</a> and <a href="https://www.humblebundle.com/home/library">Humble</a>.</p> <p>This is a bug-fixing update, mostly for crashes related to switching between widowed mode, full-screen and minimized windows. I've also included the dynamically linked pico8_dyn versions in the linux archives, that were missing from 0.1.9.</p> <p>The Windows installer &amp; .zip file include a more recent sdl2.dll, although there weren't any known issues relating to that.</p> <p>I've switched back to shift-a..z for glyph entry in the code editor, as alt-a..z is sometimes reserved by the host operating system. If you find yourself accidentally entering the extended characters by accident, you can turn this off in config.txt (near the bottom). To enter glyphs without shift-a..z, press ctrl-k to toggle glyph mode.</p> <p>Changelog:</p> <div> <div style="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> v0.1.9b Added: Alternative function key mapping: ctrl-6..9 for F6..F9 Added: Alternative glyph entry method: (ctrl-k) to toggle glyph mode Changed: Enter glyphs with shift a..z, but can be disabled in config.txt Changed: Increased emscripten ram to 128MB (some carts at risk of running out) Fixed: Crash when window size is tiny or minified Fixed: Crash on toggling fullscreen mode Fixed: printh can write files outside filetree (security issue) Fixed: show_fps (can also now be toggled with ctrl-1) Fixed: Shorthand if/then syntax error when using the form: (functionname)(param) Fixed: log.txt not saved in path specified by -home switch Fixed: Default application data folder created even when -home specified Fixed: Missing dynamic builds (pico8_dyn) from linux archives Fixed: Removed unneeded RPATH from linux binaries Fixed: export foo%d.wav fails to write multiple files </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=27827 https://www.lexaloffle.com/bbs/?tid=27827 Thu, 06 Oct 2016 18:20:28 UTC PICO-8 0.1.9 <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8_019.png" width=256 height=256 alt="" /> <p>Hey All -- PICO-8 0.1.9 builds are now live on <a href="https://www.lexaloffle.com/games.php?page=updates">Lexaloffle</a> and <a href="https://www.humblebundle.com/home/library">Humble</a>! </p> <p><h3>Posting Carts via Clipboard</h3>The handiest new feature is being able to post cartridges to the bbs via the clipboard, without ever saving it as a png. Use &quot;SAVE @CLIP&quot; to copy to the clipboard as text, and then paste it into a post (hit Preview to make sure it worked and to get rid of the wall of text). You can also copy carts from the BBS (look for 'Copy' under each cart) and paste it back into PICO-8 with &quot;LOAD @CLIP&quot;)</p> <p><h3>Posting GFX via Clipboard</h3>You can also do the same thing with sprites. Using CTRL-C in the sprite editor also stores a copy of the sprites as text in the clipboard, and can be pasted back and forth to BBS posts. Here's an example: (click the 40x8 and then CTRL-C the text to copy&amp;paste it back into a cart)</p> <p> <table><tr><td width=160> <img src="https://www.lexaloffle.com/bbs/gfxc/1_1.png" width=160 height=32> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_1_1"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/1_1.txt", function (retdata){ var el = document.getElementById("gfxcode_1_1"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [40x8]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_1_1" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> <h3>Jam</h3><img style="" border=0 src="https://www.lexaloffle.com/gfx/i_jam1.png" width=36 height=32 alt="" /></p> <p>There's a new category in the BBS called Jam, which shows up in SPLORE. The Jam sub-forum (along with clipboard cart&amp;gfx pasting) will be useful for things like the <a href="https://www.lexaloffle.com/bbs/?tid=3726">Tweetjam</a> thread and for having a natural place to discuss / post ideas for external jams like Ludumdare.</p> <p>I originally envisaged Jam-related stuff going in Collaboration, but I think Jam can grow into something quite worthwhile and separate. Collaboration will also be extended at some point to include a 'snippet library' of re-useable pieces of code/gfx/audio, which feels quite different from jamming.</p> <p><h3>Raspberry Pi GPIO</h3>If you have a Raspberry Pi and an LED, try jamming one end into GPIO1, and the other one into GND, and you can make it blink on and off with POKE(0x5f81,255) and POKE(0x5f81,0). Note that you'll need to run PICO-8 as root: sudo pico8</p> <p><h3>60FPS HTML5</h3>Exported html can now run at 60fps. To improve performance, the web player now always runs on a 128x128 rather than performing the scaling in software. If you are writing your own html shell for the exported .js, you'll need to do an unfiltered scale of the canvas to the desired size. (See the default exported 0.1.9 html shell for an example).</p> <p><h3>Pixel-Perfect Scaling</h3>When changing the window size of PICO-8, or swapping from a window to fullscreen, PICO-8 now chooses the largest integer scaling factor that will fit inside the window to avoid blurry filtered pixels. For example, on a 1920x1080 real-world display, the largest scale is 8 which gives a 1024x1024 PICO-8 display.</p> <p><h3>PocketCHIP Update</h3>We're working on it! I still can't give an eta on the PocketCHIP update, but the latest build is in testing and looks good across kernel versions, including GPIO access (so will likely skip to 0.1.9). It still needs to be coordinated with other things happening at Next Thing Co. though, so I'll keep you updated here.</p> <p><h3>Coming Up</h3>There are still a bunch of small issues with the editors I'd like to improve, but PICO-8 is starting to look pretty close to beta! Next up will be website improvements to complement the clipboard &amp; Jam category additions, and also long overdue support for touch devices. The main feature missing for beta is being able to login and submit scores from carts using SCORESUB(LEVEL, SCORE).</p> <p>The next Voxatron update also has some new PICO-8 stuff -- the first version of the Voxatron API is a superset of PICO-8's and allows mapping one slice of Voxatron's display to PICO-8 video memory. (The display is basically a stack of 64 PICO-8 screen). So you'll be able to load PICO-8 cartridges into a Voxatron cartridge and make wee arcades and weird 3d ports and whatnot. It's fantasy consoles all the way down!</p> <p>changelog:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"><br /> v0.1.9</p> <pre><span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222"> Added: Copy and paste sprites and whole cartridges directly to BBS posts Added: JAM category in splore Added: GPIO support for Raspberry Pi Added: Read clipboard using stat(4) after user presses CTRL-V Added: printh() can optionally write to a file or the host clipboard Added: Editor tool information and tips shown on mouseover Added: Set desktop path with -desktop (screenshots and gifs are saved here) Added: Warning on saving .p8 when compressed code size exceeds .p8.png limit Added: Alternative editor colours // config.txt: gui_theme 1 Added: Dotted line every 8 rows in song view Added: -screenshot_scale (default: 3) and -gif_scale (default: 2) Added: Can use ctrl-up, ctrl-down to jump to start and end of code Added: CTRL-M to mute/unmute sound Added: HTML5-exported carts support 60fps Added: Timeout switch for splore downloads: -timeout Changed: Glyph characters typed with alt + a..z Changed: stat(0) does not include allocations waiting to be garbage collected Changed: Unfiltered screen stretching at integer scales by default Changed: Removed -aspect and -scale settings (use draw_rect instead) Fixed: -home has no effect under Windows Fixed: Sometimes frame skipping starts before CPU useage has reached 100% Fixed: Double-speed BTNP() timing in 60fps mode Fixed: Exported HTML fails when _update60 is used instead of _update Fixed: Can't copy and paste button glyphs Fixed: Lines containing glyphs do not scroll far enough horizontally Fixed: Loading .p8 renamed as .p8.png from splore freezes Fixed: Bucketfill in map doesn't sync to shared memory Fixed: fset fails when de-setting flags Fixed: Syntax error when beginning with the form: IF (..) [OR|AND]\n Fixed: cls() costs twice as much cpu as it should Fixed: wav file exporter missing some data / writing truncated buffers Fixed: Entering new notes in song view doesn't observe current volume, instrument Fixed: alt-tab sometimes generates alt character text entry event Fixed: Resuming a cancelled download in splore causes crash Fixed: Controller attributes in log.txt always shown as -1 </pre> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=27633 https://www.lexaloffle.com/bbs/?tid=27633 Sun, 11 Sep 2016 15:55:00 UTC 7500 Word Dictionary <p> <table><tr><td> <a href="/bbs/?pid=26196#p"> <img src="/bbs/thumbs/pico26194.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=26196#p"> 7500 Word Dictionary</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=26196#p"> [Click to Play]</a> </td></tr></table> </p> <p>Here's a 7500 word dictionary cart for making word games and whatnot. It contains the most common 3-6 letter words according to wiktionary.com, including proper names. The loader is 264 tokens, and the data is 11317, stored over the full map (including shared gfx), plus the last 44 SFX. So there are just 128 sprites and 20 SFX spare. The 5 most common and 10 least common words on the list are:</p> <div> <div style="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> THE AND THAT WAS HIS RADIUM BAWL LINTEL WAFER WELTER AUNTY OPTICS SIKH LIL BARB </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Technical details..</p> <p>The data is generated using a convoluted toolchain process, that I'll post later on if I find time to organize it into something useful.</p> <p>The compression works by enumerating every possible word in order of word size first, and then alphabetical order. So, A is 0, B is 1, AA is 26, and so on. This means that to store the whole dictionary, only the distances between each word's index is needed. There are many clusters of close words (e.g the distance between CAN and CAP is only 2), so the distances are sorted into range categories depending on how many bits are needed to store each range. Repeated categories are common and so can be encoded with a single bit -- otherwise a 3-bit value is used to store the category for each distance. The encoding utility greedy-searches sets of 5 category bit-lengths and a roman cypher to try to optimize the encoded size, which saved around 1k compared with hand-optimizing the parameter set.</p> https://www.lexaloffle.com/bbs/?tid=3972 https://www.lexaloffle.com/bbs/?tid=3972 Sun, 31 Jul 2016 02:23:22 UTC PX8 Data Compression <p> <table><tr><td> <a href="/bbs/?pid=25922#p"> <img src="/bbs/thumbs/pico25919.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=25922#p"> PX8 Data Compression 1.0</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=25922#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a library mostly for compressing graphics and maps, but can also be adapted to compress sfx. It is designed for data-heavy carts and requires around 450 tokens for decompression, although this can be reduced if needed by removing remap(), hard-coding parameters, and/or removing predicted spans at the cost of compression performance. If someone wants a smaller/weaker version, let me know!</p> <p>To use it, compress a 2D rectangle to an address in memory, and supply a function for fetching the source values (normally SGET or MGET). For map data, you probably want to set p.cbits to something like 4 first.</p> <div> <div style="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> COMP(0, 0, 128, 64, 0x2000, SGET) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>0x2000 is the address of the top half of the map, so this will compress the top half of the sprite sheet (128 sprites) and write the compresed data over the map data.</p> <p>DECOMP() takes the memory address of the compressed data, the top left corner of where to decompress to, and functions for getting and setting decompressed values. So to decompress this data at 0x2000 back to the screen, starting 32 pixels down:</p> <div> <div style="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> DECOMP(0x2000, 0, 32, PGET, PSET) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Only the decompression section of the code is needed once you have compressed data stored on a cart. A typical workflow would be to make a utility cartridge that grabs data from multiple source cartridges (using RELOAD() with a 4th parameter to indicate where to read from), and then CSTORE them to a single cartridge (again, using CSTORE()'s 4th external cart parameter).</p> <p>Here's an example that stores 2-byte lengths at the start of each compressed block, to allow seeking out the start of any given gfx. I've commented the cstore and reload lines so that it will work if you paste it at the end of the main PX8 cart example:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div style="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> -- px8 workflow example: -- storing multiple compressed images and fetching them -- 1. make a utility cart that -- compresses all the needed -- data to a single cart local base_offset = 0x2000 local offset = base_offset -- compress some gfx and -- add the length of the compressed -- data at the start (2 bytes) function add_gfx(x,y,w,h) local len = comp(x,y,w,h,offset+2,sget) poke(offset+0,len%256) poke(offset+1,len/256) printh(&quot;wrote &quot;..offset) offset += len+2 end -- jelpi frames + mushroom add_gfx(0,24,40,8) add_gfx(40,0,8,8) -- could load another cart's -- spritesheet at any time -- reload(0,0,0x1000,&quot;blah.p8&quot;) -- vegetation add_gfx(48,16,32,16) -- store in target cart -- cstore(0x2000,0x2000,(offset-base_offset),&quot;out.p8&quot;) ---------- -- 2. load the compressed data -- (from the cart it was -- compressed to) base_offset = 0x2000 -- skip through compressed data -- blocks and load the one at -- index function load_gfx(index,x,y) local offset=base_offset for i=0,index-1 do offset += peek(offset+0) + peek(offset+1)*256 + 2 end -- use sget,sset to write back -- to the spritesheet instead -- of the screen decomp(offset+2,x,y,pget,pset) end -- test cls() load_gfx(0, 20,10) load_gfx(1, 20,40) load_gfx(2, 80,10) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> <p><h3>The Algorithm</h3><br /> I started working on PX8 while working on PICO-8's specs, as an important question was how large a game could theoretically be for hard-core users who want to go to the trouble of compressing stuff. It became something of a brainworm, and releasing PX8 is a way to get this out of my system. I hope it is also useful to someone, or at least interesting.</p> <p>PX8 is (AFAIK) a novel algorithm that appears to work well for typical PICO-8 data, and out-performs pngcrush -brute for the few 16-colour images I tested. Alternating spans of predicted and non-predicted values are stored:</p> <ol> <li> <p>Predicted values (colours) are calculated by maintaing a table of the last encountered matching neighbours: if a match top &amp; left is found, that is taken to be the prediction. Otherwise, a match for only top, and then only left are considered. Failing those, the value is taken to be non-predicted.</p> </li> <li>Non-predicted values are stored as indexes into CLIST; a list of literal values that are stored in the order they were last encountered. This means that recently encountered values have smaller indexes, and the encoding exploits this, along with the fact that each index can not possibly be for the failed prediction (in which case it would be part of a predicted span).</li> </ol> <p>Each span is strictly made of either all predicted or all non-predicted values. This means that for predicted spans, no additional information needs to be stored except the length of the span itself. And conversely for unpredicted values, the index into CLIST is known to not point at the predicted value. This means that no colour index data needs to be stored for 2 colour images at all, and the compressed data is composed entirely of span lengths.</p> https://www.lexaloffle.com/bbs/?tid=3930 https://www.lexaloffle.com/bbs/?tid=3930 Tue, 26 Jul 2016 12:59:51 UTC PICO-8 0.1.8 <p>Hey All -- PICO-8 0.1.8 builds are now live on <a href="https://www.lexaloffle.com/games.php?page=updates">Lexaloffle</a> and <a href="https://www.humblebundle.com/home/library">Humble</a>! Note that there was no 0.1.7 release for Desktop; there were in-development versions of 0.1.7 released early for web and Pocket C.H.I.P. to resolve pressing issues, so I'm calling this 0.1.8 to keep version numbers in sync across platforms. New stuff:</p> <p><h3>60 FPS support</h3>This breaks the 'every cart runs the same on all PICO-8s' rule of PICO-8's design philosophy a little bit, but I think it's worth it! On all of the desktop host platforms, it is now possible to make cartridges that display and update at 60 frames per second instead of 30. You don't get any more CPU though, so that means half the usual CPU allowance per frame. From the <a href="https://www.lexaloffle.com/pico-8.php?page=manual">manual</a>:</p> <div> <div style="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> :: Running PICO-8 at 60fps If _update60() is defined instead of _update(), PICO-8 will run in 60fps mode: - both _update60() and _draw() are called at 60fps - half the PICO-8 CPU is available per frame before dropping down to 30fps ** please note that not all PICO-8s support 60fps. On machines that do not support it, _update60() will instead be called twice per frame and _draw() at 30fps. You can check the behaviour of your program running at 30fps by adding the following snippet to the bottom of your code: u60=_update60 _update60=nil function _update() u60() u60() end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p><h3>Button Glyphs</h3><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/buttons.png" alt="" /></p> <p>The two action buttons on the PICO-8 controller are called O (BTN(4)) and X (BTN(5)). To make it easier to print instruction in-game explaining the controls, you can now insert glyph characters directly into strings in your code with Shift - U D L R O X. </p> <p><h3>Long GIFs</h3><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/slinky_live.gif" alt="" /></p> <p>Adjust the maximum GIF length in config.txt or by running PICO-8 with -gif_len n switch, where n is the number of seconds to record for (maximum: 120). The GIF output is not optimized, so you might want to run it through an <a href="http://ezgif.com/optimize">optimizer</a> to get smaller file sizes.</p> <p><h3>Custom Menu Items</h3>It is now also possible to add your own items to the pause menu to trigger things like 'RESTART PUZZLE' or 'EXIT TO OVERWORLD'. Here's an example program:</p> <div> <div style="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> col=12 function _draw() cls() rectfill(0,20,127,107,col) end function changecol() col = (col+1) end menuitem(1, &quot;change colour&quot;, changecol) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>The first parameter is the position (1-5) in the menu to insert the item, the second is the item's label, and the 3rd is a function to be called when the item is selected. I opted to keep this simple and quite rigid, so there's no way to have extra stuff going on in the background while the cart is paused, or to re-appropriate the pause button as an in-game button.</p> <p><h3>Music Exporter</h3>To record a .wav of a PICO-8 tune, first navigate to the pattern you'd like to start from in the music editing mode, then press escape to enter the console and type:</p> <p>EXPORT SONG.WAV</p> <p>If the song is looping, it will export around 4:30 that you can then manually trim in a [sound editing program](http s://sourceforge.net/projects/audacity/).</p> <p><h3>Pre-installed Games</h3>There are now 5 BBS games that ship included with PICO-8, so that it's easy to get up and playing something more than the demo carts, even when internet access is not immediately available. To install them, use INSTALL_GAMES -- they will be accessible from your favourites list in SPLORE. The games are Celeste, Frog Home, Tower of Archeos, Hug Arena, and Dusk Child.</p> <p><h3>Linux Builds</h3> I've included both statically and dynamically linked versions of the executables for i386, amd64 and Raspberry Pi. The RasPi build still depends on bcm, so it is tricky (impossible?) to get it up and running on Chromebooks.<br /> I plan to look at better Chromebook support at some point, but it will probably have to be during beta. Pocket C.H.I.P. owners, and later on regular C.H.I.P. owners can expect updates too, of course --- but we are still sorting out details and it will take a while. o(<em> </em>)o</p> <p>Next up, 0.1.9 will be mostly ongoing bugfixes, and improvements to the web player (optimization, fold-out touch controls for mobile, and controller instructions).</p> <p>Full Changelog:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div style="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> v0.1.8 Added: 60fps support Added: Music exporter Added: Custom GIF length (maximum 120 seconds) Added: -,+ to navigate sprite tabs, sfx, music patterns Added: sfx editor: navigate with home, end, pageup/down, mousewheel Added: &lt;, &gt; to modify sfx speed, or click and drag Added: Middle mouse button to pan around spritesheet / map Added: Shortcut command for splore: S Added: Pre-installed selection of BBS cart (use INSTALL_GAMES) Added: Warning when saving .p8.png with no label Added: (OSX) logging to ~/Library/Logs (viewable with Console.app) Changed: Can not CTRL-S save over a loaded bbs cart Changed: Only .p8 files listed by dir() and by splore Changed: Command history increased to 256 Changed: exit() / shutdown() have no effect while running cart Fixed: Memory useage (stat(0)) inconsistent across host platforms Fixed: Spinny disks shows when reloading current cart with load() Fixed: GIF saver does not respect 64x64 / mirrored modes Fixed: Miscellaneous multi-line comments / strings issues Fixed: Empty map cels cost cpu in mapdraw() Fixed: mapdraw() slowdown when drawing bottom half of map Fixed: preprocess changes semantics when += and : operators on same line Fixed: Identifiers starting with underscore counted as extra token Fixed: Saving .png exceeding compressed code limit fails silently Fixed: Right-clicking a sprite does not set the currently edited sprite Fixed: (Windows) extra space added to pasted lines Fixed: spr() expensive when drawn with low negative coordinates Fixed: pipe character identical to colon character Fixed: (Raspberry Pi) shift key appends a character when entering text Fixed: Editor mode buttons are still clickable during cart runtime Fixed: When loading a .p8.png file, label is reset and needs to be re-captured Fixed: export() does not report failure Fixed: mset()'d changes in shared memory not readable via peek() / sget() Fixed: cstore() saving edited code Fixed: audio pop between patterns during music playback v0.1.7 Added: menuitem() Added: button glyphs in code (shift-L, R, U, D, X, O) Added: Customisable data directory (e.g. pico8 -home mydata) Added: Web gpio pins: read and write pico8_gpio[] in javscript Fixed: SPLORE search doesn't reset Fixed: Splore skipping 33rd cart listing after loading more items Fixed: Crash when selecting a local binary file in splore Fixed: Semicolon can't be used as a list or statement separator Fixed: Exported html can not cstore self </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=3706 https://www.lexaloffle.com/bbs/?tid=3706 Sun, 26 Jun 2016 10:41:44 UTC PICO-8 Jam #2 Results <p>The theme for the <a href="https://www.lexaloffle.com/bbs/?tid=3330">second PICO-8 Jam</a> was Chain Reaction, and there were <a href="https://www.lexaloffle.com/bbs/?cat=7&amp;amp;tag=p8jam2">35 entries</a>. Thanks to everyone who contributed and made this jam a another splendid event. I hope you'll join me in congratulating the winning entry, which received a whopping 7.3 PICO-8 star average.. <em>theatrically opens invisible envelope</em></p> <p>NuSan! With Combo Pool.</p> <p> <table><tr><td> <a href="/bbs/?pid=21515#p"> <img src="/bbs/thumbs/pico21659.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=21515#p"> Combo Pool</a><br><br> by <a href="/bbs/?uid=11048"> NuSan</a> <br><br><br> <a href="/bbs/?pid=21515#p"> [Click to Play]</a> </td></tr></table> </p> <p>As a token of gratitude for laying down this most excellent cartridge, NuSan will be receiving a commemorative cross-stitch based on the cart. </p> <p>Also highly rated by participants was another disarming production by <a href="https://www.lexaloffle.com/bbs/?uid=2836&amp;amp;mode=carts">JTE</a>: <a href="https://www.lexaloffle.com/bbs/?tid=3414">Nora's Mouse Chase</a>, and the beautifully chaotic <a href="https://www.lexaloffle.com/bbs/?pid=21841&amp;amp;tid=3496">SPACETANK 9000</a> by <a href="https://www.lexaloffle.com/bbs/?uid=11060&amp;amp;mode=carts">arnodick</a>.</p> <p>You can play all of the entries by clicking on this montage:</p> <p><a href="https://www.lexaloffle.com/bbs/?cat=7&amp;amp;tag=p8jam2"><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8jam2_all.png" width=1024 height=640 alt="" /></a></p> <p>That was fun -- let's do it again sometime soon!</p> https://www.lexaloffle.com/bbs/?tid=3558 https://www.lexaloffle.com/bbs/?tid=3558 Mon, 06 Jun 2016 06:11:26 UTC PICO-8 Jam #2: Chain Reaction <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8jam2_theme.png" width=285 height=218 alt="" /> <p>If you'd like to take part in <a href="https://www.lexaloffle.com/bbs/?tid=3330">P8JAM2</a>, please select one or more themes by clicking on the PICO-8 star next to it (you need to be logged in). You can change it anytime before the 24h voting phase ends -- at 00:00 PST on Saturday the 21st. Check out the <a href="https://www.lexaloffle.com/bbs/?tid=3330">jam thread</a> for more details.</p> <p>Edit: times's up! The winning theme is <strong>Chain Reaction</strong>. You have 9 days! Good luck!</p> https://www.lexaloffle.com/bbs/?tid=3399 https://www.lexaloffle.com/bbs/?tid=3399 Fri, 20 May 2016 03:00:16 UTC New Website and Player Layout <p>Hey All</p> <p>I'm in the process of simplifying the website a little. In particular, I wanted to improve the experience of playing cartridges in threads by removing clutter. They now look more like a page dedicated to the cart:</p> <ul> <li>The player starts open</li> <li>There's a big obvious play button and large thumbnail</li> <li>There's no banner at the top of each page</li> </ul> <p> <table><tr><td> <a href="/bbs/?pid=20432#p"> <img src="/bbs/thumbs/pico20430.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=20432#p"> PICO-8 Jam #2</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=20432#p"> [Click to Play]</a> </td></tr></table> </p> <p>I removed the PLAY buttons from the thread previews, and autoplay, as I think they're no longer needed -- the whole playable region of a cart is now visible without scrolling after opening the cart's thread, and it's more obvious to new visitors what to do next.</p> <p>There are still a few small things to finish, but let me know what you think of the new layout, and if there's anything that bugs you.</p> https://www.lexaloffle.com/bbs/?tid=3368 https://www.lexaloffle.com/bbs/?tid=3368 Tue, 17 May 2016 16:25:16 UTC PICO-8 Jam #2 <p>Time for another jam! EDIT: The theme is Chain Reaction.</p> <p>EDIT2:<br /> and... that's time! Thanks everyone who contributed a cartridge! If you submitted something with the p8jam2 tag, you can now rate other p8jam2-tagged carts at the top of the cart's thread.</p> <p><a href="https://www.lexaloffle.com/bbs/?cat=7&amp;amp;tag=p8jam2">P8JAM2 THREADS</a></p> <p>If you'd like to continue working on your cartridges, feel free -- but please leave the compo version at the top of the p8jam2-tagged threads until voting finishes in one week (June 5, 24:00 PST). Good luck!</p> <p> <table><tr><td> <a href="/bbs/?pid=20432#p"> <img src="/bbs/thumbs/pico20430.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=20432#p"> PICO-8 Jam #2</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=20432#p"> [Click to Play]</a> </td></tr></table> </p> <p>Same deal as last time, except with some limited theme voting:</p> <p><strong>Duration:</strong> The Jam will take place from 00:00 PST on Saturday the 21st of May 2016 and will finish at 24:00 PST on Sunday the 29th. So, it spans 2 weekends and 5 weekdays. You can spend as much or little time on your carts as you like. Tiny silly cartridges are more than welcome.</p> <p><strong>Theme:</strong> As is customary with other jams, a theme will be posted at the start and the goal is simply to make a cart (or some carts) during the jam that reflect your interpretation of the theme. Any type of cartridge is ok: games, toys, demos, music carts or pixels.</p> <p>This time, the theme will be selected by a small twitter poll that begins 24 hours before the jam starts.</p> <p><strong>Submitting:</strong> To submit or update a jam cart before the deadline, just tag it with p8jam2. You can update your cartridge as often as you like before the deadline.</p> <p><strong>Voting:</strong> Jam participants will be able to use a voting widget on all p8jam2-tagged carts, and exactly 1 week after the jam finished, ratings will be tallied. </p> <p>There will be a small mystery prize for the highest rated cart, but you should enter for glory and honor (or just for kicks).</p> <p>During the jam, you'll be able to view all carts and posts <a href="https://www.lexaloffle.com/bbs/?tag=p8jam2">tagged with p8jam2</a>.</p> <p><strong>Rules:</strong> Teams / collaborations are allowed, in which case you should nominate one user to be the submitter (and voter). Re-using existing PICO-8 cart material is allowed as long as it is ok by the author, and that the carts are publicly available before the jam starts. Submissions should be mostly new material created during the jam, but it's ultimately up to other participants making ratings to decide what's cool and what's not.</p> https://www.lexaloffle.com/bbs/?tid=3330 https://www.lexaloffle.com/bbs/?tid=3330 Wed, 11 May 2016 09:06:09 UTC PICO-8 is Coming to PocketC.H.I.P.! <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/W3qkdB5bzLY&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/W3qkdB5bzLY&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> <p>If you're looking for a complete portable PICO-8 solution, good news! PICO-8 is going to ship pre-installed on <a href="http://nextthing.co">Next Thing Co.'s</a> upcoming <a href="http://getchip.com/pages/pocketchip">PocketC.H.I.P.</a> -- a complete portable mini-computer with built-in storage, wifi, keyboard, battery, touchscreen and everything else PICO-8 needs! The last few months, I've been working closely with the team at Next Thing Co. to create &quot;PICO-8 C&quot; -- a fully functioning and compatible edition designed to integrate nicely with NTC's hardware and software. It will be available to Kickstarter backers, or you can also <a href="http://getchip.com/pages/pocketchip">pre-order one for just $49 bucks</a>.</p> <p><a href="https://www.lexaloffle.com/bbs/files/1/p8p.png"><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/p8p.png" width=306 height=306 alt="" /></a></p> <p>You can read more about the PocketC.H.I.P. over at <a href="http://getchip.com/pages/pocketchip">getchip.com</a></p> https://www.lexaloffle.com/bbs/?tid=3274 https://www.lexaloffle.com/bbs/?tid=3274 Tue, 03 May 2016 09:19:02 UTC PICO-8 0.1.6 <p>Here's 0.1.6! You can download it from <a href="https://www.lexaloffle.com/games.php?page=updates">your updates page</a> while you're logged in, or from your Humble Store Library. Just a reminder, that if you're a Voxatron alpha customer, you also own PICO-8! (it should show up automatically in both places).</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/splore.gif" width=256 height=256 alt="" /> <p>By far the biggest change is the addition of SPLORE, a complete bbs and local cartridge explorer. You can run it by typing SPLORE, or start PICO-8 with &quot;pico-8 -splore&quot;. If you plug a joystick in and auto-boot into splore, it's possible to navigate everything using only the 6 buttons + menu button.</p> <p>This version also has a lot of new data storage functionality. Cartridges can cstore() to themselves in order to save extra data, and this is now officially supported on the web, so don't feel like it's a weird hack that's going to break! (actually it might break, but it's supported, so I'll fix it :p). Here's a demo:</p> <p> <table><tr><td> <a href="/bbs/?pid=19845#p"> <img src="/bbs/thumbs/pico19844.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=19845#p"> Drippy Save</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=19845#p"> [Click to Play]</a> </td></tr></table> </p> <p>Notes on cartridge storage, and the full change log:</p> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div style="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> -------------------------------------------------------------------------------------------- Cartridge Data -------------------------------------------------------------------------------------------- Each cartidge is able to store 64 numbers (256 bytes) of persistent data on the user's PICO-8 (rather than on the cart itself). This can be used as a lightweight way to store things like high scores or to save player progress. If you need more than 256 bytes, it is also possible to write directly to the cartridge using cstore(). The disadvantage is that the data is tied to that particular version of the cartridge. e.g. if a game is updated, players will lose their savegames. Another alternative is to write directly to a second cartridge by specifying a fourth parameter to cstore(). This requires a cart swap though (so is slightly slower), and leaves data-cart litter when run from a local folder. v0.1.6 Added: SPLORE local &amp; bbs cartridge explorer Added: setmetatable(), cocreate(), coresume(), costatus(), yield() Added: Spinning cart icon to show when a cart is swapped / written to Added: Permanent storage when carts played in a browser Added: Adjustable aspect ratio (-aspect 420 for 1:1) Changed: Lua memory limit: 1024k (was 512k) Changed: Music channel now resumes after being clobbered by an sfx Changed: Arpeggios double speed when SFX speed &lt;= 8 Changed: Exceeding compressed code limit does not block saving in .p8 format Changed: spr() half as expensive, to be consistent with map() Changed: Fractional hex number notation: 0x0.3 == 0x0.3000, (was 0x0.0003) Changed: : operator doesn't count as an extra token (same as .) Changed: cstore() writes directly to disk Changed: cstore(), reload() return number of bytes read / written Changed: save() while running does nothing. (use cstore() instead) Changed: load() while running loads and runs the specified cartridge Fixed: Small pops in audio mixer caused by sound wave discontinuities Fixed: HTML5-exported sound clicks badly under Chrome Fixed: Display palette is not oberserved when exporting GIFs Fixed: Rapid keypresses causes duplicate readings in tracker &amp; text editor Fixed: += inside comments breaks preprocessor Fixed: sspr() cpu cost the same when clipped Fixed: cartdata() with bad parameters crashes Fixed: EXPORT from commandline can not be used without brackets and quotes </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=3230 https://www.lexaloffle.com/bbs/?tid=3230 Sun, 17 Apr 2016 18:48:42 UTC Drippy Save <p> <table><tr><td> <a href="/bbs/?pid=19845#p"> <img src="/bbs/thumbs/pico19844.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=19845#p"> Drippy Save</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=19845#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a demo of the new cartridge storing in 0.1.6. (you'll need to update to 0.1.6 if you load this in PICO-8)</p> <p>Press O (mapped to Z or C) to save the screen, and X to restore it. The cursor position is not saved.</p> <p>To save, the screen is copied to the sprite sheet and then stored for clarity -- but it could have just been a straight cstore(0x0, 0x6000, 0x2000), and same again in reverse when restoring.</p> <div> <div style="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> if (btn(4)) then memcpy(0x0,0x6000,0x2000) cstore() end if (btn(5)) then len = reload() memcpy(0x6000,0x0,0x2000) end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>This should also work in your browser, even if you close it and run the cartridge again. Please let me know if it doesn't!</p> <p>Note that in 0.1.6 you can also cstore to separate cartridge files, meaning we can have quite large save games, and also saved data shared between carts on the bbs.</p> https://www.lexaloffle.com/bbs/?tid=3229 https://www.lexaloffle.com/bbs/?tid=3229 Sun, 17 Apr 2016 18:41:05 UTC PICO-8 for Raspberry Pi <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/pi_tv_0.jpg" width=612 height=612 alt="" /> <p>A build of PICO-8 0.1.5 is now available for Raspberry Pi! Check your <a href="https://www.lexaloffle.com/games.php?page=updates">updates page </a> or look in your Humble library under the Linux downloads section.</p> <p>It works in fullscreen under either X Windows or directly from the terminal (using directfb). For speed, the default resolution is 280,280; you can set this with the -width and -height switches:</p> <p>pico8 -width 720 -height 480</p> <p>Known issues:</p> <ul> <li>After quitting, keypresses during the session are sometimes dumped to terminal (annoying if you quit by typing shutdown instead of CTRL-Q!)</li> <li>Freeze on exit (observed on a zero)</li> <li>Some math-heavy cartridges (e.g. /demos/cast.p8) don't run at full speed on first generation models.</li> </ul> <p>There are two builds included in the archive. pico8 is compiled statically (so no need to install SDL2), and pico8_dyn dynamically loads libraries, in case you'd like to supply your own SDL2.</p> <p>Have fun, and please post pictures if you get pico-8 running on any cute displays!</p> https://www.lexaloffle.com/bbs/?tid=3085 https://www.lexaloffle.com/bbs/?tid=3085 Fri, 26 Feb 2016 17:14:46 UTC Tokyo Demo Fest 2016 <p><a href="http://tokyodemofest.jp/2016/"><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/tdf.png" width=651 height=258 alt="" /></a></p> <p>This weekend (20th, 21st) I'll be at <a href="http://tokyodemofest.jp/2016/">Tokyo Demo Fest 2016</a>, giving a short PICO-8 seminar at 3pm on Sunday, and also making a wee demo for the Wild compo (also in PICO-8, naturally). If you're in Tokyo, come along! The venue is larger than last year -- <a href="http://www.3331.jp/access/en/">3331 Arts Chiyoda</a>, which is around 8 minutes walk from Akihabara station. You can find the registration page and more information <a href="http://tokyodemofest.jp/2016/">here</a>.</p> <p>Here's a 4k demo from last year (it won the combined pc section):</p> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/ISkIB4w6v6I&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/ISkIB4w6v6I&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> https://www.lexaloffle.com/bbs/?tid=3067 https://www.lexaloffle.com/bbs/?tid=3067 Sun, 14 Feb 2016 12:06:25 UTC PICO-8 0.1.5 <p>Hey All</p> <p>Here's a <a href="https://www.lexaloffle.com/games.php?page=updates">quick update</a> with music copying and keyboard configuration for controller buttons.</p> <p>To configure buttons, use KEYCONFIG from the commandline.</p> <p><a href="https://www.lexaloffle.com/bbs/files/1/keyconfig.png"><img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/keyconfig.png" width=200 height=200 alt="" /></a></p> <p>To copy a song from one cartridge to another:</p> <ol> <li>In the song editor, click on the start pattern and then shift-click on the end pattern that you want to transport. They should light up green.</li> <li>Control-C to copy the pattern data, along with the sfx they point to.</li> <li>Load the cart you want to paste into, open the song view and click on the pattern index you want to paste to.</li> <li>CTRL-V to paste. When pasting a song, any SFX that are needed are written to unused slots and then the pattern indexes are adjusted accordingly.</li> </ol> <p>Changelog:</p> <div> <div style="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> v0.1.5 Added: Keyboard configuration for player buttons (KEYCONFIG) Added: Music tracker select / copy / paste Added: Single-level undo in audio tools Added: Live preview of frequencies in sound editor Fixed: Command history extends past last reboot Fixed: Sfx exporter broken Fixed: Slashes at end of path resolve to double slashes Fixed: Load cart from commandline under Windows </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=3043 https://www.lexaloffle.com/bbs/?tid=3043 Fri, 05 Feb 2016 11:59:52 UTC Rise and Shine Professor Miggles <p> <table><tr><td> <a href="/bbs/?pid=18533#p"> <img src="/bbs/thumbs/pico18860.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=18533#p"> Rise and Shine Professor Miggles 1.1</a><br><br> by <a href="/bbs/?uid=1"> zep</a> <br><br><br> <a href="/bbs/?pid=18533#p"> [Click to Play]</a> </td></tr></table> </p> <p>Every day, Professor Miggles goes to work. And every day he snoozes in bed until the last possible moment. To keep the points you get for snoozing, make sure to head out in time without forgetting to put your trousers on.</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/miggles_vid.gif" width=256 height=256 alt="" /> <p>v1.1: Fixed high score bug, and added persistent high score (when played from pico-8)</p> https://www.lexaloffle.com/bbs/?tid=3022 https://www.lexaloffle.com/bbs/?tid=3022 Sat, 30 Jan 2016 13:43:52 UTC