z80jim [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=26200 Strings in a Table <p>In Pico-8 I can do 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>d={ &quot;one&quot;, &quot;two&quot;, &quot;three&quot; } print(d[1][2]) </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 would return the 'n' from 'one'</p> <p>Picotron returns nil.<br /> I have to use</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>sub(d[r],c,c)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Has lua syntax changed or is this a Picotron thing?</p> https://www.lexaloffle.com/bbs/?tid=141533 https://www.lexaloffle.com/bbs/?tid=141533 Sun, 07 Apr 2024 22:40:06 UTC Picotron font not fixed width? <p>When printing text on two lines I have found instances where the end of the strings are not pixel aligned. It appears some characters are a different width. I haven't investigated in detail but is this the case or is it maybe a bug? We are talking one or two pixels over 20+ character strings.</p> https://www.lexaloffle.com/bbs/?tid=141412 https://www.lexaloffle.com/bbs/?tid=141412 Wed, 03 Apr 2024 12:48:55 UTC String Length with P8SCII Codes <p>Is it possible to get string lengths that ignore P8SCII codes?</p> <p>t=&quot;\F6HELLO&quot;<br /> print(#t) returns 7</p> <p>I would like it to return 5</p> <p>Thanks,<br /> Jim</p> https://www.lexaloffle.com/bbs/?tid=48459 https://www.lexaloffle.com/bbs/?tid=48459 Fri, 08 Jul 2022 21:47:24 UTC Pitfall v1.0 <p> <table><tr><td> <a href="/bbs/?pid=84798#p"> <img src="/bbs/thumbs/pico8_mopuyowonu-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84798#p"> mopuyowonu</a><br><br> by <a href="/bbs/?uid=26200"> z80jim</a> <br><br><br> <a href="/bbs/?pid=84798#p"> [Click to Play]</a> </td></tr></table> <img style="margin-bottom:16px" border=0 src="/media/26200/2_pitfall_000.png" alt="" />Hi all,</p> <p>My third complete cart and most ambitious.<br /> Wouldn't be possible without Pico-8.</p> <p>Attempt at 2600 Pitfall. Tried to get graphics and timing as close to original as possible. All 255 screens are here with he exact same layout of ladders, pits, alligators, treasures, and so on.</p> <p>Hope you like.</p> <p>Jim</p> https://www.lexaloffle.com/bbs/?tid=40594 https://www.lexaloffle.com/bbs/?tid=40594 Sat, 28 Nov 2020 15:24:15 UTC Astro Invader <p>.<br /> .<br /> <table><tr><td> <a href="/bbs/?pid=67637#p"> <img src="/bbs/thumbs/pico8_bakafofide-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=67637#p"> Astro Invader 1.0</a><br><br> by <a href="/bbs/?uid=26200"> z80jim</a> <br><br><br> <a href="/bbs/?pid=67637#p"> [Click to Play]</a> </td></tr></table> This one is an oldie that some may remember. Wasn't the greatest of arcade games but for a time as a youth it was the arcade game I had the most access too.</p> <p>Tried to make this pretty faithful to the original although I think it is too easy. Per the original there are two alien deployment patterns that alternate on levels. The large yellow UFO's also deploy as in the original. And the point value for the UFO's changes depending on the shot number you are on. Hint: 16th shot for max value.</p> https://www.lexaloffle.com/bbs/?tid=35341 https://www.lexaloffle.com/bbs/?tid=35341 Fri, 13 Sep 2019 23:51:40 UTC Rally-P8 <p> <table><tr><td> <a href="/bbs/?pid=50199#p"> <img src="/bbs/thumbs/pico50253.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=50199#p"> Rally-P8 v1.2</a><br><br> by <a href="/bbs/?uid=26200"> z80jim</a> <br><br><br> <a href="/bbs/?pid=50199#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=50199#p"> <img src="/bbs/thumbs/pico50205.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=50199#p"> Rally-P8 1.1</a><br><br> by <a href="/bbs/?uid=26200"> z80jim</a> <br><br><br> <a href="/bbs/?pid=50199#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=50199#p"> <img src="/bbs/thumbs/pico50198.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=50199#p"> Rally-P8 1.0</a><br><br> by <a href="/bbs/?uid=26200"> z80jim</a> <br><br><br> <a href="/bbs/?pid=50199#p"> [Click to Play]</a> </td></tr></table> .<br /> .<br /> .<br /> My first Pico complete game.</p> <p>Procedurally generated levels</p> <p>In game instructions</p> <p>TextBox utility function: define text box location. Word wraps text passed to it. Control codes for changing colors, centering text on a line, and newline.</p> https://www.lexaloffle.com/bbs/?tid=30922 https://www.lexaloffle.com/bbs/?tid=30922 Sat, 10 Mar 2018 16:14:38 UTC