dredds [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=37923 Holes <p> <table><tr><td> <a href="/bbs/?pid=66445#p"> <img src="/bbs/thumbs/pico8_holes-7.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=66445#p"> holes</a><br><br> by <a href="/bbs/?uid=37923"> dredds</a> <br><br><br> <a href="/bbs/?pid=66445#p"> [Click to Play]</a> </td></tr></table> </p> <p>A board game.</p> <p>The goal is to trap the other player on a single square. </p> <p>On each turn, the player can move their piece one square, causing a hole to appear beside their opponent, or jump their piece two squares (possibly over a hole), leaving a hole where their piece was.</p> <p>There are different options for play:</p> <ul> <li>two player, one controller (pass the controller back and forth between turns)</li> <li>two player, two controllers (each player has their own controller)</li> <li>one player, easy AI</li> <li>one player, challenging AI</li> </ul> <p>You can choose from a number of board layouts. If you download the cart is easy to add your own board layouts with the sprite editor.</p> <p>In the menu, use the direction buttons to move between menu entries, and the X and O buttons to cycle through the options of menu entry, or perform a menu action.</p> <p>In the game, use the direction buttons to move your piece, or hold down the X or O buttons and use the direction buttons to jump your piece. Use the pause menu if you want to abandon a game and return to the title menu.</p> <p>Gameplay screen shots:<br /> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/37923/new-title-screen.gif" alt="" /> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/37923/game-start.gif" alt="" /> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/37923/game-end.gif" alt="" /></p> <p>Drawing a board layout in the sprite editor:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/37923/adding-a-board-layout.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=34988 https://www.lexaloffle.com/bbs/?tid=34988 Wed, 07 Aug 2019 21:27:53 UTC Error reporting from coroutines <p>I'm loving coroutines -- they make it so easy to write complex animations and user interactions. But without error stacktraces, debugging them is a <em>nightmare</em>. What's the plan around this? Can we expect a new version of Pico-8 with better error reporting from coroutines?</p> https://www.lexaloffle.com/bbs/?tid=34632 https://www.lexaloffle.com/bbs/?tid=34632 Fri, 05 Jul 2019 09:33:49 UTC Rocket Rivals 1.2 <p> <table><tr><td> <a href="/bbs/?pid=65247#p"> <img src="/bbs/thumbs/pico8_rocket_rivals-7.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65247#p"> Rocket Rivals 1.2</a><br><br> by <a href="/bbs/?uid=37923"> dredds</a> <br><br><br> <a href="/bbs/?pid=65247#p"> [Click to Play]</a> </td></tr></table> </p> <p>Rocket Rivals, a one-button multiplayer game of brinkmanship.</p> <p>Each player has a single control button that controls their thrust. Players earn points by flying higher than the other players, but lose everything if they hit the laser beam top of the screen.</p> <p>Each match lasts one minute.</p> <p>You can choose active players and their characters on the title screen (at the moment only controller 1 navigates the menu).</p> <p>Credits:</p> <ul> <li>uses <a href="https://www.lexaloffle.com/bbs/?uid=10844"> @electricgryphon</a>'s fast triangle drawing function</li> </ul> https://www.lexaloffle.com/bbs/?tid=34533 https://www.lexaloffle.com/bbs/?tid=34533 Mon, 17 Jun 2019 23:08:41 UTC Colour Illusion <p> <table><tr><td> <a href="/bbs/?pid=65215#p"> <img src="/bbs/thumbs/pico8_colour_illusion-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65215#p"> colour_illusion</a><br><br> by <a href="/bbs/?uid=37923"> dredds</a> <br><br><br> <a href="/bbs/?pid=65215#p"> [Click to Play]</a> </td></tr></table> </p> <p>Each ball is drawn in the same colour (brown) but it appears red, green or blue depending on which colour stripes are drawn over it.</p> <p>Inspired by an image shared on twitter. (See <a href="https://twitter.com/testingham/status/1139558284631789568">https://twitter.com/testingham/status/1139558284631789568</a>)</p> <p>I thought i'd see if pico-8 can create the illusion even with its limited palette. The answer is: yes it can! :-)</p> <p>And unlike an image, in pico-8 you can read the source code to confirm the illusion acts as stated.</p> https://www.lexaloffle.com/bbs/?tid=34521 https://www.lexaloffle.com/bbs/?tid=34521 Sat, 15 Jun 2019 08:52:18 UTC How to center text? <p>I&rsquo;m trying to print text centred around a point. </p> <p>At the moment my code offsets the x coordinate by half the width<br /> of a string in pixels, calculated as <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">(4* #s)-1. </p> <p>This works fine for<br /> alphanumeric text but is wrong when the text contains glyphs. </p> <p>Is there a built in function to help achieve this? </p> <p>Or do I need to examine every character when computing the pixel width of the text?</p> https://www.lexaloffle.com/bbs/?tid=34512 https://www.lexaloffle.com/bbs/?tid=34512 Fri, 14 Jun 2019 15:12:29 UTC Divisibubbles 1.2 <p> <table><tr><td> <a href="/bbs/?pid=65064#p"> <img src="/bbs/thumbs/pico8_divisibubbles-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65064#p"> divisibubbles</a><br><br> by <a href="/bbs/?uid=37923"> dredds</a> <br><br><br> <a href="/bbs/?pid=65064#p"> [Click to Play]</a> </td></tr></table> <table><tr><td> <a href="/bbs/?pid=65064#p"> <img src="/bbs/thumbs/pico8_divisibubbles-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65064#p"> divisibubbles 1.2</a><br><br> by <a href="/bbs/?uid=37923"> dredds</a> <br><br><br> <a href="/bbs/?pid=65064#p"> [Click to Play]</a> </td></tr></table> </p> <p>An arcade/puzzle game that will challenge your reactions and your wits.</p> <p>Tap the bubbles that contain a divisor of the number shown at the top-left corner of the screen. When you've tapped them all, the number will increase and more bubbles will appear.</p> <p>But time is running out. A wrong tap will cost some time. A successful tap will gain some time. Can you get to 100?</p> <p>This game uses Pico-8's mouse/touch input.</p> https://www.lexaloffle.com/bbs/?tid=34473 https://www.lexaloffle.com/bbs/?tid=34473 Fri, 07 Jun 2019 23:55:21 UTC