aced [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=68924 10PRINT&quot;NOVA&quot; (256b Tiny Intro) <p>A Tiny Intro, made at my first demo party, NOVA (UK). :-)</p> <p>256b ROM and more info here:<br /> <a href="https://github.com/ace-dent/demo-toybox/tree/main/NOVA2024">https://github.com/ace-dent/demo-toybox/tree/main/NOVA2024</a></p> <p> <table><tr><td> <a href="/bbs/?pid=150059#p"> <img src="/bbs/thumbs/pico8_print_nova-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=150059#p"> 10PRINT&quot;NOVA&quot;</a><br><br> by <a href="/bbs/?uid=68924"> aced</a> <br><br><br> <a href="/bbs/?pid=150059#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=142741 https://www.lexaloffle.com/bbs/?tid=142741 Mon, 17 Jun 2024 21:13:22 UTC Halloween one-liner <p>๐•ณ๐–†๐–‘๐–‘๐Ÿ’€๐–œ๐–Š๐–Š๐–“ incantation ~</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>?&quot;โถrw&sup1;ใ‚ทโถ.\0ใ€&gt;*โฌ†๏ธ@&sup2;โด&quot;</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=54835 https://www.lexaloffle.com/bbs/?tid=54835 Tue, 31 Oct 2023 00:09:50 UTC fillp's inverted colors <p>Does anyone else find it surprising that with <code>fillp()</code> a set <code>1</code> bit draws the background color, and an unset <code>0</code> bit draws a pixel of the foreground color ? ... I appreciate it's a feature of P8 and also see why technically it may be necessary...<br /> Just wondered what people think: are colors are inverted to convention...? ๐Ÿค”</p> <p>Do you invert the fill pattern or just swap the palette colors when rendering?</p> https://www.lexaloffle.com/bbs/?tid=53637 https://www.lexaloffle.com/bbs/?tid=53637 Fri, 04 Aug 2023 22:11:03 UTC Feature request - poke4 values <p>Possible bug / user error / 'feature' of rounding(?)...</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>cls() print(&quot;0x7b18.3060&quot;) print(tostr(0x7b18.3060)) print(tostr(31512.189,true)) print(tostr(31512.188965,true))</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Why does PICO-8 return the <code>s16.16</code> value for the hexadecimal with too few digits?<br /> i.e. the conversion with tostr() hex&gt;dec&gt;hex is lossy.</p> https://www.lexaloffle.com/bbs/?tid=53595 https://www.lexaloffle.com/bbs/?tid=53595 Mon, 31 Jul 2023 13:06:33 UTC 8x8 patterns <p>Hi,</p> <p>I finished up my asset pack of 'retro' 8x8px repeating tile patterns:<br /> <a href="http://8x8.me">http://8x8.me</a></p> <p><em>Public Domain - free to use.</em></p> <p>The P8 code snippets encode the image to font data, or png images are provided to load to the sprite sheet.<br /> There's also some 'magic' to quickly try out a pattern, e.g.</p> <p><code>?&quot;โถrw&sup1;ใ‚ทโถ.&quot;..&quot;โ–ฎโ–ฎ,#ใ‚4โธโธ&quot;</code></p> <p>Appreciate any feedback; hope it's useful :-)</p> <img style="margin-bottom:16px" border=0 src="/media/68924/4_garden.map.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=52906 https://www.lexaloffle.com/bbs/?tid=52906 Mon, 29 May 2023 10:41:26 UTC A game in 2 tokens? <p>An impostor among them... ๐Ÿง</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>?&quot;แถœ2โถrw&sup1;ใ‚ตโถ.แต‰&sup3;แถ \nใƒŠ0ใƒฆใโถ.แต‰ใ€Œใ‚›\nใƒŠ0ใƒฆใ&sup1;ใ‚“โถ.แต‰&sup3;แถ \nใƒŠ0ใƒฆใ&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>... What's the fewest tokens for a 'game'...?</p> https://www.lexaloffle.com/bbs/?tid=50251 https://www.lexaloffle.com/bbs/?tid=50251 Thu, 17 Nov 2022 01:17:15 UTC Feature request: initialise custom font properties <p>A new instance of PICO-8, will have the custom font properties set to zero.</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>?peek(0x5600) -- =0 ?peek(0x5601) -- =0 ?peek(0x5602) -- =0</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 sets width and height to a default of 0 pixels. This will never be a useful default state.<br /> It can be confusing for newcomers- and frankly is easily forgotten / overlooked for experienced users- when working with custom fonts.</p> <p>Request:</p> <ul> <li>Initialise custom font properties to a reasonable default of 8 x 8 px, which matches the one-off character default. i.e. <code>poke(0x5600,8,8,8)</code></li> </ul> https://www.lexaloffle.com/bbs/?tid=49799 https://www.lexaloffle.com/bbs/?tid=49799 Sat, 15 Oct 2022 13:18:58 UTC Handling of trailing comma <p>Possibly a bug or just a quality of life issue...<br /> Functions should handle trailing commas gracefully.</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>data={1,2,3,} -- trailing comma poke( 0x5600, unpack(data) ) -- works poke( 0x5600, 1,2,3, ) -- fails</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 may be fundamental to Lua?</p> https://www.lexaloffle.com/bbs/?tid=49778 https://www.lexaloffle.com/bbs/?tid=49778 Thu, 13 Oct 2022 22:23:12 UTC Feedback: Storing patterns in a custom font <p>Hi,</p> <p>I'm working on a collection of 'retro' 8x8 repeating <a href="https://github.com/ace-dent/8x8.me#08-woven">patterns</a>.<br /> Since the <code>fillp()</code> function only supports 4x4 px patterns, the nearest data format is using Custom Fonts (1bit per pixel, 8x8px).</p> <p>I'm planning on something like this:</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>?&quot;\^!5600โธxโธ\0\0&quot; -- 97 'a' stonewall poke(0x5600+(8* 97), 14, -- โ–’โ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’ 230, -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–ˆ 240, -- โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆ 102, -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–’ 15, -- โ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’ 95, -- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–ˆโ–’ 206, -- โ–’โ–ˆโ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆ 224 -- โ–’โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆ ) -- 98 'b' picket poke(0x5600+(8* 98), 0, -- โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’ 34, -- โ–’โ–ˆโ–’โ–’โ–’โ–ˆโ–’โ–’ 102, -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–’ 255, -- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 102, -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–’ 102, -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–’ 255, -- โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 102 -- โ–’โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–’ -- ... )</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 to render the pattern, </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;\014aaabbb&quot; print &quot;\014aaabbb&quot; -- etc.</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Request for feedback:<br /> (esp. <a href="https://www.lexaloffle.com/bbs/?uid=66501"> @Heracleum</a>, <a href="https://www.lexaloffle.com/bbs/?uid=15232"> @dw817</a>) ~ Is this reasonable?<br /> Is there a more appropriate data type / graphics method?</p> <p>Many thanks,<br /> Andrew </p> https://www.lexaloffle.com/bbs/?tid=49758 https://www.lexaloffle.com/bbs/?tid=49758 Wed, 12 Oct 2022 17:43:18 UTC Printing custom fonts (bug/ feature?) <p>Hi,</p> <p>Playing with custom fonts, I found that the <code>\n</code> escape sequence cannot be followed by an <code>a</code> in the string (probably an issue also with <code>0</code>-<code>9</code> and <code>a</code>-<code>f</code>). This <strong>doesn't</strong> occur in the default font mode (works as expected)...</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>poke(0x5600,8,8,8,0,0) -- setup 8x8 font -- Char 97 'a' poke(0x5600+(8* 97), 12,108,99,3,48,54,198,192) -- Works with &quot;\n a&quot; ?&quot;\014 a\n a&quot; -- Missing character with &quot;\na&quot; ?&quot;\014 a\na&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>Possible bug: <code>\na</code> shouldn't be treated as an escape code for custom fonts (just <code>\n</code>).</p> https://www.lexaloffle.com/bbs/?tid=49217 https://www.lexaloffle.com/bbs/?tid=49217 Tue, 06 Sep 2022 16:40:54 UTC