wesleyparriott [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=82901 cookiecrumbler <p> <table><tr><td> <a href="/bbs/?pid=138488#p"> <img src="/bbs/thumbs/pico8_cookiecrumbler-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=138488#p"> cookiecrumbler</a><br><br> by <a href="/bbs/?uid=82901"> wesleyparriott</a> <br><br><br> <a href="/bbs/?pid=138488#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Cookie Crumbler</h1> <p><em>A small arkanoid clone where you help a cow try and get home</em></p> <h2>Goal</h2> <p>I spend an embarrassing amount of my time playing around splore and awhile back a lot of people were putting out<br /> brick-break clones. There's a moment in brick-break where you have one brick left and you spend a lot of time trying to<br /> get the last brick. I wanted to make a brick-break/arkanoid like game where you wouldn't have to deal with that<br /> frustrating last-brick moment. </p> <h2>My Solutions</h2> <p>I tried to solve the goal two ways: ball direction based on where it hit the paddle and creating a explosion that moves<br /> across the screen taking 1 hit off of every cookie hit. </p> <h3>Ball Direction Based on where it Hit the Paddle</h3> <p>In arkanoid your ball will go in different directions based on where you hit paddle. Meaning, if you hit the right most<br /> of the paddle the ball would go more right than if you hit the paddle just right of the center. This is done by just<br /> lerping -1 to 1 based on where the ball is on the paddle. </p> <h3>Explosion that Moves Across the Screen</h3> <p>When the ball is in play you can press the &quot;x&quot; button (or whatever you button you have set) to explode a jug. The<br /> explosion creates a big circle that grows larger and takes adds a life-point to every cookie it passes through. This is<br /> just circle-vs-rectangle collision detection. The way I made sure it only hit once was to add the hit cookie to an array<br /> and check if the collided rectangle was in that array.</p> <h2>Bugs</h2> <p><em>There's still some weird stuff with the way collision works on the paddle.</em> I should just do collision the same way I do<br /> the bricks. </p> <p><em>Sometimes the score goes negative.</em> I don't know if I solved this one or not. But the problem is that the numbers<br /> pico-8 uses aren't quite as large as I originally thought. </p> <h2>Feedback</h2> <p>Let me know what you think! What would you do different? Does the paddle feel okay? Do you feel okay? </p> <h2>Thanks</h2> <p>I hope you have a good day and night</p> https://www.lexaloffle.com/bbs/?tid=55259 https://www.lexaloffle.com/bbs/?tid=55259 Sat, 09 Dec 2023 18:01:41 UTC boxmoover <p> <table><tr><td> <a href="/bbs/?pid=138172#p"> <img src="/bbs/thumbs/pico8_boxmoover-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=138172#p"> boxmoover</a><br><br> by <a href="/bbs/?uid=82901"> wesleyparriott</a> <br><br><br> <a href="/bbs/?pid=138172#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Boxmoover</h2> <p>A cute little game about a cow helping you move.</p> <h2>Learned things</h2> <p>We loaded levels via reading each tile of the map, getting which sprite it was, and creating an entity based on that.<br /> While the math on loading levels via the map was a little odd at first.<br /> It lead to a really easy ways to create levels via the pico8 level editor.<br /> The downside is that it makes it hard to reload the lvls with the same code.<br /> Because levels loaded at when levels change instead of at the start of the game therefore the map data would change until the game was restarted.<br /> Not being able to read the map data after a level change meant that we couldn't reload previous levels.<br /> What would of been better would have been to save the initial map state in _init.<br /> Then, create levels based on that information.<br /> Essentially only ever using spr() and not map()</p> <p>This is our first time using the map editor in Pico-8.<br /> It's fun but a little limited.<br /> When cutting a set of sprites in the map editor you have to use the stamp tool to paste.<br /> The pan tool will tell you what the x and y is of the upper left corner.<br /> We want to know more shortcuts and tricks in the map editor. </p> <h2>To anyone reading</h2> <p>Thanks for reading and hopefully playing :)<br /> If you have any suggestions feel free to let me know. Especially map editor tricks and tips!</p> https://www.lexaloffle.com/bbs/?tid=55194 https://www.lexaloffle.com/bbs/?tid=55194 Sun, 03 Dec 2023 06:59:36 UTC Cow Pie <p> <table><tr><td> <a href="/bbs/?pid=135416#p"> <img src="/bbs/thumbs/pico8_cowpie-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=135416#p"> cowpie</a><br><br> by <a href="/bbs/?uid=82901"> wesleyparriott</a> <br><br><br> <a href="/bbs/?pid=135416#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=54458 https://www.lexaloffle.com/bbs/?tid=54458 Wed, 04 Oct 2023 19:26:34 UTC