mtrc [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=16615 Lulpeg/Lpeg/Lua execution inside Picotron <p>Hey folks,</p> <p>I'd like to be able to parse a language (or just interpret Lua!) inside a Picotron cart. I'm aware of why this would be considered risky!</p> <p>My initial thought was to look at Lua's own loadstring(), but that's not in Picotron. load() is, which one thread claims is very similar, but I can't get it to do execution of a string, or find its documentation.</p> <p>I looked at lulpeg (<a href="https://github.com/pygy/LuLPeg">https://github.com/pygy/LuLPeg</a>) which someone claims to have gotten running on picotron (<a href="https://arnaught.neocities.org/blog/2025/03/14/year-of-the-picotron-desktop">https://arnaught.neocities.org/blog/2025/03/14/year-of-the-picotron-desktop</a>) but I'm having trouble with module imports and am wondering if load() will actually do what I need anyway.</p> <ol> <li>Is there documentation for load() anywhere and will it let me do e.g.</li> </ol> <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>s = &quot;print(1+1)&quot; load(s)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <ol start="2"> <li>Is there another alternative to the above approaches that might let me either write a simple DSL or interpret Lua strings at runtime?</li> </ol> https://www.lexaloffle.com/bbs/?tid=151155 https://www.lexaloffle.com/bbs/?tid=151155 Sun, 24 Aug 2025 11:50:53 UTC Intercepting the return/enter key <p>Hey folks,</p> <p>I'm working on a game/app where I'd like to use keyboard input. This has a few tricky things to it in picotron, but chief among them is I can't use the return/enter key as it causes the system menu to pop up at runtime. Is there any way to intercept the keypress or otherwise stop picotron from pausing the game when enter is pressed?</p> https://www.lexaloffle.com/bbs/?tid=151023 https://www.lexaloffle.com/bbs/?tid=151023 Sun, 17 Aug 2025 12:55:34 UTC Portal Panic <p> <table><tr><td> <a href="/bbs/?pid=172312#p"> <img src="/bbs/thumbs/pico8_portalpanic-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=172312#p"> portalpanic</a><br><br> by <a href="/bbs/?uid=16615"> mtrc</a> <br><br><br> <a href="/bbs/?pid=172312#p"> [Click to Play]</a> </td></tr></table> </p> <p>Made for the GMTK 2025 Game Jam, theme 'Loop'. It came 56th for Creativity! The game is a little too hard, but I hope you enjoy it (especially if you like puzzle platformers). </p> <p>Also available on itch.io here: <a href="https://illomens.itch.io/portal-panic">https://illomens.itch.io/portal-panic</a></p> <h1>Instructions </h1> <p>Arrow keys: Move<br /> Z: Jump<br /> X: Clear dialogue, pull levers</p> <p>Touching runes connects them together. Connect them all together and return to the first one you touched to escape the level. Good luck!</p> https://www.lexaloffle.com/bbs/?tid=151022 https://www.lexaloffle.com/bbs/?tid=151022 Sun, 17 Aug 2025 12:50:45 UTC