DivergentClouds [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=31246 `print`ing more than 19 newlines without coordinates costs too much CPU <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>function _draw() cls() print(&quot;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n&quot;) -- 19 newlines 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>costs 0.1 cpu according to <code>ctrl-p</code>.<br /> however,</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>function _draw() cls() print(&quot;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n&quot;) -- 20 newlines 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>costs 0.47 cpu. Each additional newline after that adds around 0.46 cpu usage. This happens with seperate <code>print</code> calls as well. Supplying coordinates to the <code>print</code> call will prevent the cpu from spiking. Note that the 20th newline is when <code>print</code> will scroll the first line off the screen.</p> https://www.lexaloffle.com/bbs/?tid=140937 https://www.lexaloffle.com/bbs/?tid=140937 Wed, 20 Mar 2024 15:05:23 UTC Parens-8 Repl <p> <table><tr><td> <a href="/bbs/?pid=143760#p"> <img src="/bbs/thumbs/pico8_parens8_repl-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=143760#p"> Parens-8 REPL v1.1</a><br><br> by <a href="/bbs/?uid=31246"> DivergentClouds</a> <br><br><br> <a href="/bbs/?pid=143760#p"> [Click to Play]</a> </td></tr></table> </p> <p>A REPL for <a href="https://www.lexaloffle.com/bbs/?tid=140578">PARENS-8 v3</a> by Siapran. Uses <a href="https://www.lexaloffle.com/bbs/?tid=43437">PicoTerm v1.10</a> by me for the UI.</p> <p>For information on using PARENS-8 see the <a href="https://github.com/Siapran/parens-8">Github repository</a>, all extensions and builtins are enabled.</p> <p>To clear the screen run the <code>clear</code> function or press <code>ctrl-l</code>. To print to the terminal use the <code>echo</code> function. To clear the current line press <code>ctrl-u</code>.</p> <p>Special thanks to <a href="https://www.lexaloffle.com/bbs/?uid=9770"> @Siapran</a> for making a special PARENS-8 version for this project.</p> <p>PARENS-8 is licensed under the MIT license.<br /> <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 /> MIT License</p> <p>Copyright (c) 2023 Katherine Miller</p> <p>Permission is hereby granted, free of charge, to any person obtaining a copy<br /> of this software and associated documentation files (the &quot;Software&quot;), to deal<br /> in the Software without restriction, including without limitation the rights<br /> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br /> copies of the Software, and to permit persons to whom the Software is<br /> furnished to do so, subject to the following conditions:</p> <p>The above copyright notice and this permission notice shall be included in all<br /> copies or substantial portions of the Software.</p> <p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br /> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br /> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br /> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br /> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br /> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br /> SOFTWARE.<br /> </div></div></div></p> <p>PicoTerm is licensed under the BSD-3 Clause license.<br /> <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 /> Copyright 2024 DivergentClouds</p> <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p> <ol> <li> <p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p> </li> <li> <p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p> </li> <li>Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li> </ol> <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &ldquo;AS IS&rdquo; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br /> </div></div></div></p> https://www.lexaloffle.com/bbs/?tid=140883 https://www.lexaloffle.com/bbs/?tid=140883 Tue, 19 Mar 2024 14:45:04 UTC [RESOLVED] Misaligned BBS Web Player <img style="margin-bottom:16px" border=0 src="/media/31246/Screenshot 2024-03-14 at 17-57-03 TINY-EDIT.png" alt="" /> <p>The left side is cut off on user profile pages as well</p> <img style="margin-bottom:16px" border=0 src="/media/31246/Screenshot 2024-03-14 at 17-55-44 DivergentClouds.png" alt="" /> <p>(sorry if this is the wrong subforum, couldn't find one that worked great)</p> https://www.lexaloffle.com/bbs/?tid=140652 https://www.lexaloffle.com/bbs/?tid=140652 Thu, 14 Mar 2024 22:39:24 UTC TINY-EDIT <p> <table><tr><td> <a href="/bbs/?pid=113192#p"> <img src="/bbs/thumbs/pico8_tiny_edit-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=113192#p"> TINY-EDIT</a><br><br> by <a href="/bbs/?uid=31246"> DivergentClouds</a> <br><br><br> <a href="/bbs/?pid=113192#p"> [Click to Play]</a> </td></tr></table> </p> <p>A text editor in under 512 characters. Made for <a href="https://itch.io/jam/pico-8-512-char-jam">Pico-8 512-Char Jam</a>.<br /> <a href="https://divergentclouds.itch.io/tiny-edit">Also on itch.io</a></p> https://www.lexaloffle.com/bbs/?tid=48166 https://www.lexaloffle.com/bbs/?tid=48166 Wed, 15 Jun 2022 15:59:58 UTC Username Change <p>Is it possible to request a username change? I emailed [email protected] about changing my username a few months ago and followed up a week ago, but I've gotten no response? Does anyone know another way of getting in contact with Zep?</p> https://www.lexaloffle.com/bbs/?tid=44828 https://www.lexaloffle.com/bbs/?tid=44828 Thu, 30 Sep 2021 04:55:05 UTC PicoTerm <p> <table><tr><td> <a href="/bbs/?pid=93811#p"> <img src="/bbs/thumbs/pico8_picoterm_v1-12.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=93811#p"> PicoTerm 1.10</a><br><br> by <a href="/bbs/?uid=31246"> DivergentClouds</a> <br><br><br> <a href="/bbs/?pid=93811#p"> [Click to Play]</a> </td></tr></table> <br /> PicoTerm is a PICO-8 CLI template. It can be used as a basis for command-line games and programs.</p> <p>See tab 3 for the functions that are called whenever a character or line is entered. See tab 2 for functions to call to interact with the terminal.</p> <p>Pressing <code>ctrl-u</code> or <code>ctrl-l</code> will clear the current line of input or the screen, respectively. The up and down arrows allow you to scroll through input history.</p> <p>If you use this in a project please follow the license terms at the bottom of the post. I would also appreciate being notified, however that is not mandatory.</p> <p>If you do not use a feature in your project you can modify this remove it to have more tokens.</p> <p>Known Issues:<br /> <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> <ul> <li>Pressing <code>ctrl-u</code> does not clear the line from the input history.<br /> </div></div></div></li> </ul> <p>Changelog:<br /> <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 /> 1.10</p> <ul> <li>Added <code>ctrl-u</code> and <code>ctrl-l</code> keyboard shortcuts for clearing the current line of input and screen, respectively</li> <li>Added <code>init_hook()</code> and moved editable globals to <code>default_init_hook()</code></li> <li>Added <code>arrow_hook()</code> with input history traversal in <code>default_arrow_hook()</code></li> <li>Fixed <code>max_lines</code> being inaccurate for values over 19</li> <li>Fixed cursor position breaking with max_lines being too large</li> </ul> <p>1.9</p> <ul> <li>Fixed bug where pressing backspace on an empty line would briefly move the cursor backwards</li> <li>Rewrote a lot of code</li> <li>Other various bug fixes</li> <li>Added character hooks</li> </ul> <p>1.8</p> <ul> <li>Fixed bug where cpu usage would skyrocket with enough lines</li> </ul> <p>1.7</p> <ul> <li>Fixed bug where line wrapping wouldn't work if a previous line had been wrapped</li> </ul> <p>1.6</p> <ul> <li>Major line wrapping bug fixed</li> <li>Fixed pressing ESC sometimes printing a dot</li> </ul> <p>1.5</p> <ul> <li>Fixed bug where the cursor would persist at the start of a line after pressing return</li> </ul> <p>1.4</p> <ul> <li>Added blinking cursor</li> </ul> <p>1.3</p> <ul> <li>Prohibited glyph characters in input to prevent doublewide characters from messing up the screen scrolling</li> </ul> <p>1.2</p> <ul> <li>Made it so that the prompt is mixed in with the log rather than being stuck at the bottom of the screen</li> </ul> <p>1.1</p> <ul> <li>Made it so pressing ESC won't print a character</li> </ul> <p>1.0</p> <ul> <li>Released<br /> </div></div></div></li> </ul> <p>License:<br /> <a href="https://opensource.org/licenses/BSD-3-Clause">BSD 3-Clause</a><br /> <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 /> Copyright 2024 DivergentClouds</p> <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p> <ol> <li> <p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p> </li> <li> <p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p> </li> <li>Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li> </ol> <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &ldquo;AS IS&rdquo; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br /> </div></div></div></p> https://www.lexaloffle.com/bbs/?tid=43437 https://www.lexaloffle.com/bbs/?tid=43437 Mon, 21 Jun 2021 17:28:02 UTC [Bug] Export broken without gameloop <p>Trying to export a binary or html file from a file that doesn't have the </p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>_init() _update() _draw()</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>loop will result in a screen like in the picture. This particular image was from the code </p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>print(&quot;test&quot;).</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <img style="margin-bottom:16px" border=0 src="/media/31246/bintest_001.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=38403 https://www.lexaloffle.com/bbs/?tid=38403 Sat, 13 Jun 2020 22:09:32 UTC [Feature Request] Command Line Launch Paths <p>Please add a flag when launching a cart from the command line to make the cart path relative to the PICO-8 carts folder rather than the current directory of the command prompt/terminal. In addition, a feature to launch within a certain PICO-8 subdirectory rather than the root folder would be nice.</p> https://www.lexaloffle.com/bbs/?tid=38370 https://www.lexaloffle.com/bbs/?tid=38370 Wed, 10 Jun 2020 20:03:08 UTC Multiplying fractional numbers gives incorrect results <p>If you multiply a fraction that isn't a power a number greater than 1 the returned result will be incorrect (for example PICO-8 returns 9.9991 from print(0.1*100)). I'm aware that this is a problem inherent to fixed point numbers, however some special cases would be greatly appreciated.</p> https://www.lexaloffle.com/bbs/?tid=35448 https://www.lexaloffle.com/bbs/?tid=35448 Thu, 26 Sep 2019 21:05:24 UTC Devkit keyboard works when paused <p>When pressing a button on the keyboard with devkit enabled while paused through Splore the keystrokes will register and take effect when unpaused.</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/31246/text_edit_v0_3_2.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=33702 https://www.lexaloffle.com/bbs/?tid=33702 Sun, 24 Mar 2019 05:22:10 UTC Text Edit 0.4 <p> <table><tr><td> <a href="/bbs/?pid=56382#p"> <img src="/bbs/thumbs/pico8_textedit0_4-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=56382#p"> Text Edit 0.4</a><br><br> by <a href="/bbs/?uid=31246"> DivergentClouds</a> <br><br><br> <a href="/bbs/?pid=56382#p"> [Click to Play]</a> </td></tr></table> </p> <p><strong>Text Edit</strong><br /> <strong>v0.4</strong></p> <p><span style="text-decoration: underline;">Changelog:</span><br /> 0.4<br /> [+] Total rewrite<br /> [+] Word wrap (Credit: <a href="https://www.lexaloffle.com/bbs/?uid=24585"> @Jusiv</a>)<br /> [+] Line wrap<br /> [+] Lowercase letters<br /> [-] Moveable cursor (Temporary)<br /> [-] Scrolling text (Temporary)<br /> [-] Tab (Temporary)</p> <p>0.3<br /> [-] Escape not working in Splore<br /> [-] Arrow keys activating twice<br /> [-] Escape creating a space</p> <p>0.2<br /> [+]SCROLLING TEXT<br /> [-]pressing p more than once pauses in BBS</p> <p><span style="text-decoration: underline;">Implemented:</span><br /> Typing with your keyboard<br /> Backspace<br /> Word Wrap<br /> Line Wrap</p> <p><span style="text-decoration: underline;">Todo:</span><br /> Saving files<br /> Loading files<br /> Undo/redo<br /> Selecting text<br /> Copy/paste<br /> Tab<br /> Moveable cursor (use arrow keys)<br /> Scrolling text<br /> (Possibly) on screen keyboard<br /> And more...</p> <p><strong><span style="text-decoration: underline;">Credits:</span></strong><br /> Jusiv for the word wrap function</p> https://www.lexaloffle.com/bbs/?tid=31841 https://www.lexaloffle.com/bbs/?tid=31841 Fri, 07 Sep 2018 16:14:10 UTC Suggestion: Devkit Keyboard <p>Similarly to how you can enable the devkit mouse it would be nice if you could enable the keyboard for use in carts. This would allow for things like text adventures and keyboard shortcuts for things like roguelikes.</p> https://www.lexaloffle.com/bbs/?tid=31818 https://www.lexaloffle.com/bbs/?tid=31818 Wed, 05 Sep 2018 00:15:34 UTC Laser Pong <p> <table><tr><td> <a href="/bbs/?pid=55868#p"> <img src="/bbs/thumbs/pico55867.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=55868#p"> Laser Pong</a><br><br> by <a href="/bbs/?uid=31246"> DivergentClouds</a> <br><br><br> <a href="/bbs/?pid=55868#p"> [Click to Play]</a> </td></tr></table> </p> <p>A 2-player pong variant with lasers</p> <p>Left and right change laser color</p> <p>-Red speeds the ball up<br /> -Orange slows the ball down<br /> -Yellow changes the ball's y-direction<br /> -Green changes the ball's x-direction</p> <p>Catching a laser with your paddle will increase your ammo by 1</p> <p>If player 1 wants to use a keyboard and player 2 wants to use a controller, then you must launch PICO-8 with the following command </p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> &lt;PICO-8 path&gt; -joystick 1 </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=31765 https://www.lexaloffle.com/bbs/?tid=31765 Wed, 29 Aug 2018 18:16:35 UTC