Cupps [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=32885 Card Hand Display Demo <p> <table><tr><td> <a href="/bbs/?pid=82481#p"> <img src="/bbs/thumbs/pico8_cardhanddemo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=82481#p"> cardhanddemo</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=82481#p"> [Click to Play]</a> </td></tr></table> <br /> This is a demo on how to display the cards in a player's hand. Hope you find this useful!</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>--the amount of room for the cards to be in hand_width = 96 --the size of the room in pixels room_width = 128 --number of cards on screen card_num = 0 --the width of the card in pixels card_width = 12 --how many cards until they compress card_fit_num = flr(hand_width/card_width) function _update() --update card_num if btnp(❎) then card_num += 1 end if btnp(🅾️) and card_num &gt; 0 then card_num -= 1 end --update hand_width if btn(⬆️) then hand_width += 1 end if btn(⬇️) and hand_width &gt; 12 then hand_width -= 1 end card_fit_num = flr(hand_width/card_width) end function _draw() --draw stuff cls(1) print(&quot;card num:&quot;..card_num,43,50,6) print(&quot;x to add card&quot;,37,58) print(&quot;c to retract card&quot;,29,64) print(&quot;⬆️⬇️ to change hand size&quot;,15,70) line(room_width/2-hand_width/2-2,98,room_width/2-hand_width/2-2,117) line(room_width/2-hand_width/2+hand_width+1,98,room_width/2-hand_width/2+hand_width+1,117) line(room_width/2-hand_width/2-2,98,room_width/2-hand_width/2+hand_width+1,98) line(room_width/2-hand_width/2-2,117,room_width/2-hand_width/2+hand_width+1,117) --where the magic happens if card_num &gt; card_fit_num then for i=0,card_num-1 do spr(1,(room_width/2-hand_width/2)+(hand_width-card_width)*(i/(card_num-1)),100,2,2) end else for i=0,card_num-1 do spr(1,(room_width/2-hand_width/2)+hand_width/2-(card_width*(card_num/2))+(i*card_width),100,2,2) end end 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=39788 https://www.lexaloffle.com/bbs/?tid=39788 Wed, 30 Sep 2020 23:27:46 UTC Shop Shop v1 <p> <table><tr><td> <a href="/bbs/?pid=80222#p"> <img src="/bbs/thumbs/pico8_shopshop-4.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=80222#p"> Shop Shop</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=80222#p"> [Click to Play]</a> </td></tr></table> </p> <p>The cart is completed! There are a few bugs with the seed menu but I'm too tired to mess with it anymore. If there are any game-breaking bugs please report them in the comments. </p> <p>The song is an 8-bit remix of Amazing Plan by Kevin Macleod.<br /> This is a cart based on I'll Take You To Tomato Town for my major project in school.</p> <p>Random Seed Time: 00:31<br /> Set Seed Time : XX:XX<br /> Can you beat my times?</p> <p>Arrow keys to move<br /> X to show menu<br /> C to toggle with shelves<br /> X+C to shop minimap</p> https://www.lexaloffle.com/bbs/?tid=39061 https://www.lexaloffle.com/bbs/?tid=39061 Sun, 02 Aug 2020 02:03:30 UTC Reaction Time Test <p> <table><tr><td> <a href="/bbs/?pid=79400#p"> <img src="/bbs/thumbs/pico8_react-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=79400#p"> react</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=79400#p"> [Click to Play]</a> </td></tr></table> <br /> Have to make my own experiment for a science assessment. I'm doing mine on how colour affects reaction time so I created this little cart to do so.</p> https://www.lexaloffle.com/bbs/?tid=38858 https://www.lexaloffle.com/bbs/?tid=38858 Thu, 16 Jul 2020 04:46:55 UTC Get Bit! <p> <table><tr><td> <a href="/bbs/?pid=74417#p"> <img src="/bbs/thumbs/pico8_getbit-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=74417#p"> Get Bit!</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=74417#p"> [Click to Play]</a> </td></tr></table> <br /> To know how to play this game, check the official website to the card game this is based on.<br /> <a href="https://www.ultraboardgames.com/get-bit/game-rules.php">https://www.ultraboardgames.com/get-bit/game-rules.php</a></p> https://www.lexaloffle.com/bbs/?tid=37243 https://www.lexaloffle.com/bbs/?tid=37243 Thu, 02 Apr 2020 10:51:34 UTC DVD Logo Corner Game <p> <table><tr><td> <a href="/bbs/?pid=63493#p"> <img src="/bbs/thumbs/pico8_dvdlogo-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=63493#p"> DVD Logo Game</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=63493#p"> [Click to Play]</a> </td></tr></table> <br /> Made this game over the course of 2 days. I wanted to make something simple so I could familiarise myself with Lua so I made this. The best part is no matter where it spawns it will always hit the corner! Hope you guys enjoy. (Pls leave a star, I'd appreciate that :D)</p> <p>Edit: Thank you so much for leaving such nice words about my game.<br /> Update: Fixed a bug where if it spawned at x83 and moved right then it would clip out of the map.</p> https://www.lexaloffle.com/bbs/?tid=33867 https://www.lexaloffle.com/bbs/?tid=33867 Sun, 14 Apr 2019 08:23:33 UTC Temple Tombs (Dropped) <p> <table><tr><td> <a href="/bbs/?pid=60741#p"> <img src="/bbs/thumbs/pico8_templetombs-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=60741#p"> templetombs</a><br><br> by <a href="/bbs/?uid=32885"> Cupps</a> <br><br><br> <a href="/bbs/?pid=60741#p"> [Click to Play]</a> </td></tr></table> </p> <p>this is my first game that I'm working on inspired by Tomb of the Mask. So far there's only 3 levels but there's more I want to do with this such as moveable boxes for puzzles and some hazards too.</p> https://www.lexaloffle.com/bbs/?tid=32864 https://www.lexaloffle.com/bbs/?tid=32864 Thu, 10 Jan 2019 23:57:44 UTC