mattfox12 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=9518 PICO 8 Handheld <p><iframe loading="lazy" class="vine-embed" src="https://vine.co/v/iDHE9MPd5Dr/embed/simple" width="320" height="320" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script></p> <p>I've been working on a handheld for playing PICO-8. It uses a Raspberry Pi Zero, and an Adafruit 1.8&quot; screen for displaying. The screen size is 160x128, so PICO-8 fits perfectly (alright, centered). The buttons and button PCB are robbed from a USB NES controller I had. The case is 3D printed to fit the parts (very tightly). Total size of the unit is 120x45x20mm.</p> <p><a href="https://www.lexaloffle.com/bbs/files/9518/picoBoy1.JPG"><img loading="lazy" style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/9518/picoBoy1.JPG" width=320 height=240 alt="" /></a><a href="https://www.lexaloffle.com/bbs/files/9518/picoBoy2.JPG"><img loading="lazy" style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/9518/picoBoy2.JPG" width=320 height=240 alt="" /></a></p> <p>The screen mirrors the output of the HDMI, so you can play with either the TV or built in screen. Currently, it has no internal battery, but I'd like to find a good lipo battery to add. In the meantime, I just connect a USB power stick.</p> <p><a href="https://www.lexaloffle.com/bbs/files/9518/picoBoy3.jpg"><img loading="lazy" style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/9518/picoBoy3.jpg" width=320 height=240 alt="" /></a><a href="https://www.lexaloffle.com/bbs/files/9518/picoBoy4.JPG"><img loading="lazy" style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/9518/picoBoy4.JPG" width=320 height=240 alt="" /></a></p> https://www.lexaloffle.com/bbs/?tid=3174 https://www.lexaloffle.com/bbs/?tid=3174 Tue, 29 Mar 2016 13:11:36 UTC _draw vertical flip <p>I'm trying to port Write Fight for playing on a cocktail cabinet (players at opposite ends of a face-up screen). So one of the things I want to do is write text &amp; HUD elements oriented to the player who collected it. Is there a function, such as camera(), where I could flip/rotate all draw calls until reset?</p> <p>I'm doing work-arounds in the meantime, but I thought I'd throw out the question.<br /> Thanks.</p> https://www.lexaloffle.com/bbs/?tid=1882 https://www.lexaloffle.com/bbs/?tid=1882 Mon, 27 Apr 2015 14:49:48 UTC Write Fight <p> <table><tr><td> <a href="/bbs/?pid=10213#p"> <img src="/bbs/thumbs/pico10212.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=10213#p"> Write Fight</a><br><br> by <a href="/bbs/?uid=9518"> mattfox12</a> <br><br><br> <a href="/bbs/?pid=10213#p"> [Click to Play]</a> </td></tr></table> </p> <p>Two-player deathmatch game. Players draw lines which will damage the other player if touched. Pick up ink bottle power-ups to increase your draw speed, ink reserve, and refresh speed. Includes 9 characters and 14 randomized maps. </p> <img loading="lazy" style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/9518/release_anim_2x.gif" width=256 height=256 alt="" /> <p>Player 1 keys: Cursors + Z / N<br /> Player 2 keys: SDFE + tab / shift</p> <p>X/Q change the player color on the home screen.</p> <p>This is a complete version of my entry into Ludum Dare 32: An Unconventional Weapon. <a href="http://ludumdare.com/compo/ludum-dare-32/?uid=15743">http://ludumdare.com/compo/ludum-dare-32/?uid=15743</a></p> https://www.lexaloffle.com/bbs/?tid=1874 https://www.lexaloffle.com/bbs/?tid=1874 Sat, 25 Apr 2015 18:30:50 UTC Nesting While loops <p>I don't know if this is a bug or feature, but it seems to me that nested loops do not work. </p> <p>I attempted to use the following code, debugging the text showed that only one loop occurred:</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 x=0 local y=0 while(x&lt;16) do while(y&lt;16) do val=mget(x,y) print(val) y+=1 end x+=1 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>I don't know if this is intended or a limit of lua, but I was able to work around it with the following code:</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 i=0 while(i&lt;256) do local x=i%16 local y=(i-x)/16 val=mget(x,y) print(val) i+=1 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=1869 https://www.lexaloffle.com/bbs/?tid=1869 Fri, 24 Apr 2015 17:22:33 UTC Write Fite <p> <table><tr><td> <a href="/bbs/?pid=10027#p"> <img src="/bbs/thumbs/pico10024.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=10027#p"> Write Fite</a><br><br> by <a href="/bbs/?uid=9518"> mattfox12</a> <br><br><br> <a href="/bbs/?pid=10027#p"> [Click to Play]</a> </td></tr></table> <br /> Two player game. Players try to draw a line into the other by holding the button down to draw. Pick up ink bottle power-ups to increase your draw speed, ink reserve, and refresh speed.</p> <p>Player 1 keys: Cursors + Z / N<br /> Player 2 keys: SDFE + tab / shift</p> <p>Game entered into Ludum Dare 32: An Unconventional Weapon. <a href="http://ludumdare.com/compo/ludum-dare-32/?uid=15743"><a href="http://ludumdare.com/compo/ludum-dare-32/?uid=15743">http://ludumdare.com/compo/ludum-dare-32/?uid=15743</a></a></p> https://www.lexaloffle.com/bbs/?tid=1826 https://www.lexaloffle.com/bbs/?tid=1826 Sun, 19 Apr 2015 21:22:57 UTC