phaselock.studio [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=37818 Left-click/trackpad issues on mac? <p>Not sure if this is a bug or not but it is really hard for me to get left-clicks to register on my macbook pro. Whether I'm tapping to click or actually pushing the trackpad it generally takes 4 to 5 clicks to register 1. I don't have any issues in any other apps so it isn't my hardware. </p> <p>Is anyone else having this issue? Are there any known workarounds? Thanks!</p> <p>EDIT: I am having this problem on a 2015 macbook pro but I was able to test with a new m2 macbook pro and all the push left clicks registered correctly but the tap left clicks still took 5 or 6 solid taps to register. </p> https://www.lexaloffle.com/bbs/?tid=141323 https://www.lexaloffle.com/bbs/?tid=141323 Sun, 31 Mar 2024 21:09:58 UTC Picotron Colors Numbered <img style="margin-bottom:16px" border=0 src="/media/37818/3_picotron_colors2.png" alt="" /> <p>Made a quick and dirty program to label Picotron's colors for personal reference and thought I'd post the image here in case it's helpful.</p> https://www.lexaloffle.com/bbs/?tid=141214 https://www.lexaloffle.com/bbs/?tid=141214 Fri, 29 Mar 2024 00:11:07 UTC cat and pwd commands <p>While poking around in Picotron, I found myself wanting to view the contents of a file without opening it in the editor (via the <strong>edit</strong> command), so I wrote a little <strong>cat</strong> function. In order to implement it I needed to grab the current working directory so I went ahead and implemented a <strong>pwd</strong> command as well. Both of these are very simple and really just wrap existing Picotron functions for ease of use in the command line.</p> <p>-=<strong>cat</strong>=-</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>local argv = env().argv local foldr = env().path if #argv &lt; 1 or #argv &gt; 1 then print(&quot;usage: cat filename&quot;) else local f = foldr..&quot;/&quot;..argv[1] print(fetch(f)) 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>-=<strong>pwd</strong>=-</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>local foldr = env().path print(foldr) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>To implement these, just save each in it's own project in the <em>/appdata/system/util</em> folder, using the name of each command as the filename- so copy the code for <strong>cat</strong> into '<em>main.lua</em>' and <strong>cd</strong> into <em>/appdata/system/util</em> and type <code>save cat</code>. Same goes for <strong>pwd</strong>. Once you do this, you can run them straight from the Picotron command line. </p> <p>Hope these are helpful to someone else :). Thanks to <a href="https://www.lexaloffle.com/bbs/?uid=51236"> @Hessery</a> and <a href="https://www.lexaloffle.com/bbs/?uid=54296"> @scrapSavage</a> for introducing me to the <strong>fetch</strong> function!</p> https://www.lexaloffle.com/bbs/?tid=140766 https://www.lexaloffle.com/bbs/?tid=140766 Sun, 17 Mar 2024 02:06:48 UTC http GET request? <p>Has anyone figured out how to make a http GET request in Picotron? I saw it listed in the roadmap for the 3/14 release but couldn't find a function in the list provided by NuSan <a href="https://www.lexaloffle.com/bbs/?tid=140687">here</a>.</p> <p>Thanks! :D</p> https://www.lexaloffle.com/bbs/?tid=140751 https://www.lexaloffle.com/bbs/?tid=140751 Sat, 16 Mar 2024 22:11:11 UTC Santa Showdown <p>Made for Jame Gam Christmas Edition - 2021</p> <p>This is my first, complete game!!</p> <p> <table><tr><td> <a href="/bbs/?pid=103473#p"> <img src="/bbs/thumbs/pico8_rgugotufo-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=103473#p"> Santa Showdown 0.2</a><br><br> by <a href="/bbs/?uid=37818"> phaselock.studio</a> <br><br><br> <a href="/bbs/?pid=103473#p"> [Click to Play]</a> </td></tr></table> </p> <p>I would've like to have done music but ran out of time. I joined with only 2 days to go and it was a mad dash to finish. I can think of many things that I can do better next time (the code is really wonky. What a great learning experience! I welcome all comments and criticisms! </p> <p>Thanks for playing!</p> https://www.lexaloffle.com/bbs/?tid=45844 https://www.lexaloffle.com/bbs/?tid=45844 Fri, 24 Dec 2021 17:05:21 UTC [Feature Request] Nav If Statements w/ Keyboard Shortcut and Highlighting <p>If statements can be hard to navigate once you have a couple nested. </p> <p>I think it would be helpful to have a keyboard command to jump to different parts of an if statement, that way you could tell which parts belong to which statement. </p> <p>Also if the different parts belonging to that particular level of the conditional tree were highlighted that would be extremely helpful.</p> <p>If this is already possible and I somehow missed it, I'm sorry.</p> <p>Thanks for reading.</p> https://www.lexaloffle.com/bbs/?tid=38750 https://www.lexaloffle.com/bbs/?tid=38750 Fri, 10 Jul 2020 01:37:34 UTC Making One Object &quot;Look At&quot; Another <p> <table><tr><td> <a href="/bbs/?pid=67698#p"> <img src="/bbs/thumbs/pico8_lookat-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=67698#p"> lookat</a><br><br> by <a href="/bbs/?uid=37818"> phaselock.studio</a> <br><br><br> <a href="/bbs/?pid=67698#p"> [Click to Play]</a> </td></tr></table> </p> <p>Made this little cart as I was working through coding a look-at type function. Wanted to post it in case it's helpful for someone. </p> <p>This type of functionality is useful for all sorts of things. Maybe you just want one character to look at another or a gun barrel to follow the cursor etc.</p> https://www.lexaloffle.com/bbs/?tid=35358 https://www.lexaloffle.com/bbs/?tid=35358 Sun, 15 Sep 2019 14:45:33 UTC Alpha Masking in Pico-8 <p>Hi all,</p> <p>I was wondering if anyone might know how to make an alpha mask like you might do in After Effects. A good example that I've been trying to replicate with no success is the classic Star Wars transition where you have a circle that gradually gets smaller, until the screen is black. </p> <p>I know that I can draw a black rectangle and a circle, then scale the circle down but I cant figure out how to cut the circle from the rectangle to create the mask. </p> <p>I hope I'm making sense.. it would basically be a black rectangle with a scalable transparent circle in the middle that cuts through the black revealing whatever is drawn onto the screen below it.</p> <p>Any help would be much appreciated. Thanks!!</p> https://www.lexaloffle.com/bbs/?tid=35310 https://www.lexaloffle.com/bbs/?tid=35310 Tue, 10 Sep 2019 13:55:36 UTC Help with collisions on scrolling map <p>So I'm new to Pico-8 and really enjoying it so far. I'm trying to get tile collisions working on a scrolling background but just can't seem to figure it out. Here's what I have so far. Any help would be appreciated. Thanks!!</p> <p> <table><tr><td> <a href="/bbs/?pid=64955#p"> <img src="/bbs/thumbs/pico8_yyubogugu-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=64955#p"> yyubogugu</a><br><br> by <a href="/bbs/?uid=37818"> phaselock.studio</a> <br><br><br> <a href="/bbs/?pid=64955#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=34425 https://www.lexaloffle.com/bbs/?tid=34425 Sun, 02 Jun 2019 18:03:50 UTC