sl3dge [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=106018 That Phial Game <p> <table><tr><td> <a href="/bbs/?pid=166081#p"> <img src="/bbs/thumbs/pico8_that_phial_game_1_1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=166081#p"> that_phial_game_1_1</a><br><br> by <a href="/bbs/?uid=106018"> sl3dge</a> <br><br><br> <a href="/bbs/?pid=166081#p"> [Click to Play]</a> </td></tr></table> </p> <h1>That Phial Game</h1> <p>Inspired by that mobile game, try to sort colors together by pouring them from one phial to the other.</p> <h2>Controls</h2> <p>Z or 🅾️ to deselect [Special action on double press]<br /> X or ❎ to select<br /> Arrow Keys to move selection</p> <h2>Game Modes</h2> <h3>Puzzle</h3> <p>Start with a random arrangement of colors and try to sort them all.<br /> Special action: Undo.</p> <h3>Infinite</h3> <p>Colors get added every 5 turns. When all phials are full, you loose. Try to survive as long as possible.<br /> Get two turns of additional time when you complete a phial.<br /> Special action: Skip to the next drop.</p> <h2>Changelog</h2> <ul> <li>Added difficulty selection in puzzle mode. These go from 2 to 8 colors and 4 to 10 phials respectively.</li> <li>Made the phials bigger</li> <li>Add a victory screen</li> <li>Add a menu entry to retry the current seed (to avoid mashing undo)</li> </ul> <p>Please let me know what you think!</p> <h3>Older versions</h3> <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> <h3>1.0</h3> <p> <table><tr><td> <a href="/bbs/?pid=166081#p"> <img src="/bbs/thumbs/pico8_that_phial_game_1_0-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=166081#p"> that_phial_game_1_0</a><br><br> by <a href="/bbs/?uid=106018"> sl3dge</a> <br><br><br> <a href="/bbs/?pid=166081#p"> [Click to Play]</a> </td></tr></table> <br /> </div></div></div></p> https://www.lexaloffle.com/bbs/?tid=148610 https://www.lexaloffle.com/bbs/?tid=148610 Fri, 25 Apr 2025 13:40:01 UTC ls -al or ll <p>Hello everyone,</p> <p>Here's my first upload to the BBS ever, it's a simple rewrite of the <code>ls.lua</code> util. I've always preferred using <code>ls -al</code> (that is usually aliased as <code>ll</code>) in my unix terminals and because the muscle memory is too strong, I've just remade it quickly in Picotron. </p> <p>Let me know if you have any issue. I also wanted to add the 'rwx' info just as a joke, but it crowded the output a bit too much.</p> <p>Just copy this code in 'll.lua' in '/appdata/system/util'</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 lpad(nb, str) local nb_to_add = nb - #str local result = &quot;&quot; for k=0,nb_to_add do result = result..&quot; &quot; end return result..str end cd(env().path) local path0 = env().argv[1] or &quot;.&quot; path = fullpath(path0) if (not path) then print(&quot;could not resolve path &quot;..tostr(path0)) exit(0) end local res=ls(path) if (not res) then print(&quot;could not find path &quot;..tostr(res)) exit(0) end local sizes = {} local max_size = 0 local modifies = {} local max_mod = 0 local names = {} local sub_count = {} local max_sub = 0 for i=1,#res do local type, size, mount_point = fstat(path..&quot;/&quot;..res[i]) local meta = fetch_metadata(res[i]) local modified = &quot;&quot; if meta != nil then if meta.modified != nil then modified = meta.modified end end add(sizes, tostring(size)) local s = #tostring(size) if (s &gt; max_size) max_size = s add(modifies, modified) local m = #modified if (m &gt; max_mod) max_mod = m add(names, res[i]) local sub_c = &quot;1&quot; if type == &quot;folder&quot; then sub_c = tostring(#ls(res[i])) end add(sub_count, sub_c) if (#sub_c &gt; max_sub) max_sub = #sub_c end -- print header? --[[ local header = &quot;&quot; header = header .. &quot;nb&quot; header = header .. lpad(max_size, &quot;size&quot;) header = header .. lpad(max_mod, &quot;modified&quot;) header = header .. &quot; name&quot; print(header) --]] for i=1,#res do local str=&quot;&quot; local col = &quot;6&quot; if (sub(names[i],-4)==&quot;.lua&quot;) then col=&quot;c&quot; end if (sub(names[i],-4)==&quot;.txt&quot;) then col=&quot;a&quot; end if (sub(names[i],-4)==&quot;.pod&quot;) then col=&quot;9&quot; end if (sub(names[i],-4)==&quot;.png&quot;) then col=&quot;b&quot; end if (sub(names[i],-4)==&quot;.p64&quot;) then col=&quot;s&quot; end str = str..lpad(max_sub, sub_count[i]) str = str..lpad(max_size, tostring(sizes[i])) str = str..lpad(max_mod, modifies[i]) str = str..&quot; \f&quot;..col..names[i] print(str) end </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=146563 https://www.lexaloffle.com/bbs/?tid=146563 Mon, 13 Jan 2025 20:35:35 UTC