cheapshot [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=13549 ちーぷかーと (Cheap's tweetcarts) <p>Creating this blog to house my tweetcarts.<br /> The first is this fireball creation ☄️</p> <ul> <li>pset instead of CLS</li> <li>pset is used to check pixel colour and change the colour to one lower in the COL table.</li> <li>two circles spinning around which get small as the radius from the centre gets smaller.</li> </ul> <p> <table><tr><td> <a href="/bbs/?pid=98555#p"> <img src="/bbs/thumbs/pico8_fireballrebirth-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=98555#p"> fireballrebirth</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=98555#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=44963 https://www.lexaloffle.com/bbs/?tid=44963 Tue, 12 Oct 2021 23:41:48 UTC Flappy Words <p> <table><tr><td> <a href="/bbs/?pid=96163#p"> <img src="/bbs/thumbs/pico8_flappywords-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=96163#p"> Flappy Words</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=96163#p"> [Click to Play]</a> </td></tr></table> </p> <p>I had the idea of creating some educational game parodies, and this is the first.</p> <p>🐤 Fly through the pipes to spell animal names!<br /> 🐤 See what words you spelt at the end of the game!<br /> 🐤 Points!<br /> 🐤 Bird!<br /> 🐤 FREE!<br /> 🐤 Use in your class!*</p> <p>The main code and the pipe sprite are from <a href="https://www.lexaloffle.com/bbs/?uid=25561"> @jalecko</a>'s wonderful <a href="https://www.lexaloffle.com/bbs/?tid=36633">tutorial</a>.</p> <p>*A friend of mine has already told me he will use this game in his class to start a conversation about how crappy educational games can be.</p> <hr /> <p>Learn about my research and teaching with games over on the <a href="https://www.llpjournal.org">LLP journal website</a>.</p> https://www.lexaloffle.com/bbs/?tid=44288 https://www.lexaloffle.com/bbs/?tid=44288 Wed, 18 Aug 2021 03:47:42 UTC Flume - Rushing Back remix <p> <table><tr><td> <a href="/bbs/?pid=79380#p"> <img src="/bbs/thumbs/pico8_flumeremix-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=79380#p"> flumeremix</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=79380#p"> [Click to Play]</a> </td></tr></table> </p> <p>I'm a big fan of this song and wanted to improve my PICO-8 music-making skills, so decided to remix it here. </p> <p>Not 100% finished, but you get the idea. </p> https://www.lexaloffle.com/bbs/?tid=38842 https://www.lexaloffle.com/bbs/?tid=38842 Thu, 16 Jul 2020 03:25:07 UTC 2D Movement <p> <table><tr><td> <a href="/bbs/?pid=75146#p"> <img src="/bbs/thumbs/pico8_movement_2d-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=75146#p"> movement_2d</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=75146#p"> [Click to Play]</a> </td></tr></table> </p> <p>I have been experimenting with player movement for a top-down 2D game. At the moment, I have &quot;fixed&quot; diagonal movement to be 0.7x the speed of straight-line movement, and also added friction so the character sprite slows down gradually.</p> <img style="" border=0 src="/media/13549/movement.p8_0.gif" alt="" /> <p><strong>The next step however is acceleration. </strong></p> <p>I'm wondering how a slow ramp into movement (acceleration) might be achieved using the lerping algorithm as introduced here: <a href="https://demoman.net/?a=animation-code-part-1">https://demoman.net/?a=animation-code-part-1</a></p> <p>Does anyone have tips or a tutorial on how I could achieve this acceleration/deceleration?? </p> <p>Code for movement:</p> <div> <div style="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>if (btn(➡️) and btn(⬆️)) then p.dx=p.speed*.707 p.dy=0-(p.speed*.707) elseif (btn(➡️) and btn(⬇️)) then p.dx=p.speed*.707 p.dy=p.speed*.707 elseif (btn(⬅️) and btn(⬇️)) then p.dx=0-(p.speed*.707) p.dy=p.speed*.707 elseif (btn(⬅️) and btn(⬆️)) then p.dx=0-(p.speed*.707) p.dy=0-(p.speed*.707) elseif (btn(⬆️)) then p.dy=0-p.speed elseif (btn(➡️)) then p.dx=p.speed elseif (btn(⬇️)) then p.dy=p.speed elseif (btn(⬅️)) then p.dx=0-p.speed end if not btnp(⬆️) and not btnp(⬇️) then p.dy*=friction if p.dy&lt;0.01 and p.dy&gt;-0.01 then p.dy=0 end end if not btnp(➡️) and not btnp(⬅️) then p.dx*=friction if p.dx&lt;0.01 and p.dx&gt;-0.01 then p.dx=0 end end p.x+=p.dx p.y+=p.dy p.x=mid(0,p.x,124) p.y=mid(0,p.y,124) </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=37523 https://www.lexaloffle.com/bbs/?tid=37523 Wed, 22 Apr 2020 01:40:14 UTC A top-down Smash TV clone <p> <table><tr><td> <a href="/bbs/?pid=74678#p"> <img src="/bbs/thumbs/pico8_inf_topdown-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=74678#p"> inf_topdown</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=74678#p"> [Click to Play]</a> </td></tr></table> </p> <p>Hello everyone!</p> <p>Today I am sharing the results of a personal &quot;game jam&quot; I completed this weekend. I use the inverted commas there because I was very sporadic in terms of my time on the game jam, maybe averaging 4 hours each day... so in reality, I completed this game in about 8 hours.</p> <p>This was my first proper dive into game programming, and, as a reflection of the project, I'm ecstatic that I was able to get a game made to this level in the amount of time I spent making it. </p> <h2>Things I want to implement next time</h2> <ul> <li>levels</li> <li>different mobs</li> <li>player lives</li> </ul> <h2>Some issues/questions I still have</h2> <ul> <li>I don't fully understand what code should be in <em>_update()</em> and <em>_draw()</em> (that is -- I don't know how or why I should separate code between these two functions.)</li> <li>I don't know how to rotate sprites. I wanted to have the character rotate without having to create a different sprite set.</li> <li>I didn't figure out how to reduce speed when travelling diagonally.</li> </ul> <h2>Special thanks</h2> <ul> <li><a href="https://www.youtube.com/channel/UCY3KFjwFe1DyZYxhwHbm7Ew">Dylan Bennet</a> for the excellent tutorials on YouTube.</li> <li><a href="https://ztiromoritz.github.io/pico-8-shooter/">Ztiro Moritz</a> for the &quot;Shooter in 16 gifs&quot; tutorial: <ul> <li>the &quot;for e in all(enemies)&quot; code</li> <li>the explosion code</li> <li>the collision code</li> </ul></li> <li><a href="https://www.youtube.com/watch?v=YQzwVDMIfyU">Lazy Devs on YouTube</a> for the most detailed tutorials I've seen </li> </ul> https://www.lexaloffle.com/bbs/?tid=37330 https://www.lexaloffle.com/bbs/?tid=37330 Sun, 12 Apr 2020 23:20:16 UTC Wandidi - music made with my son <p>I'm just getting into tracking with pico-8 and this is a test for me to see how uploading carts to the site works.<br /> The track name &quot;Wandidi&quot; was decided by my 5-year-old, and he also came up with the main melody.</p> <p> <table><tr><td> <a href="/bbs/?pid=72490#p"> <img src="/bbs/thumbs/pico8_wandidi-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=72490#p"> wandidi</a><br><br> by <a href="/bbs/?uid=13549"> cheapshot</a> <br><br><br> <a href="/bbs/?pid=72490#p"> [Click to Play]</a> </td></tr></table> </p> <p>We might add more to it, hence the post in the WIP forum.</p> <p>Thanks for checking in &lt;3</p> <p>Cheapshot and son</p> https://www.lexaloffle.com/bbs/?tid=36694 https://www.lexaloffle.com/bbs/?tid=36694 Fri, 31 Jan 2020 04:12:45 UTC