Loan Wulf [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=63962 Long distance function. <h3>Resolved</h3> <p>Does anyone know of a long distance function that does not: 1. Overflow, 2. Gives pixel perfect distance, 3. Handles distances up to about 200. I have one I'm working with:</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>function dist(x,y,x2,y2) local opp=x-x2 local adj=y-y2 return opp/cos(-atan2(opp,adj)) 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>However, it has weird instances where it throws up its hands and gives crazy numbers.</p> <p>Thanks so much for the help!</p> https://www.lexaloffle.com/bbs/?tid=141422 https://www.lexaloffle.com/bbs/?tid=141422 Wed, 03 Apr 2024 19:24:46 UTC ShapeDemo <p> <table><tr><td> <a href="/bbs/?pid=125205#p"> <img src="/bbs/thumbs/pico8_shapedemo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=125205#p"> shapedemo</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=125205#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Helloooo everyone!</h2> <p>I made this cart because I am positive someone out there desperately needs it.<br /> Ok, so I just made it for fun, but surely you would too.</p> <p>I left some notes on how to use it, but you may have some work ahead if you want to decipher my code.</p> <h2>The making</h2> <p>I first envisioned a shape platformer game. That never happened. Anyhoo, I had envisioned a game<br /> and I needed a simple and easy way to draw believable polygons. First, I looked around to see if<br /> anyone else had done it before. I found one or two, but I did not like them enough. </p> <p>My plan was simple:<br /> I would draw the shapes one line at a time, top to bottom.<br /> After some trial runs, I ended up scrapping it. Next, I dabbled with the idea of vertical lines.<br /> That did not work either.<br /> Finally, I came up with something radical: draw them from the inside out.<br /> This plan had no major problems, it only took time to figure where my sines and cosines should be.<br /> I polished some by adding outlines and voil&agrave;, here is the finished product. Hope you find it useful<br /> and enjoyable. :)</p> https://www.lexaloffle.com/bbs/?tid=51454 https://www.lexaloffle.com/bbs/?tid=51454 Thu, 02 Feb 2023 22:36:23 UTC Icecapades <p> <table><tr><td> <a href="/bbs/?pid=122973#p"> <img src="/bbs/thumbs/pico8_icecapades-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=122973#p"> icecapades</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=122973#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Merry Christmas!</h1> https://www.lexaloffle.com/bbs/?tid=50811 https://www.lexaloffle.com/bbs/?tid=50811 Sun, 25 Dec 2022 00:39:00 UTC Putt-Putt <p> <table><tr><td> <a href="/bbs/?pid=121206#p"> <img src="/bbs/thumbs/pico8_putt_putt_full_version-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=121206#p"> putt_putt_full_version</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=121206#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Putt-Putt</h2> <p>Sit back, relax, and knock that ball into the hole!</p> <p>Which hole is your favorite? How many hole-in-ones can you get?</p> <p>Downloadable version at <a href="https://loan-wulfious.itch.io/putt-putt">Itch.io</a>.</p> <h3>Behind the scenes</h3> <p>This is my first full on game. All my others have just been remakes.<br /> The physics were quite easy. Friction and collide, that's it. However, designing 48 unique levels<br /> was very time-consuming, if you liked them, please leave a star, maybe a comment. Thanks!<br /> This is also the first game I have uploaded to Itch.io.</p> <h3>Credits:</h3> <p>Coding --- Loanwulfious(me)<br /> Music --- @Packbats, adapted by Loanwulfious<br /> Art, Cover --- Loanwulfious, inspired by <a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a><br /> Special thanks: Lazy Devs, General Chaos, doc_robs, fam and friends.</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/63962/put_put p8_2.gif" alt="" /> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/63962/13_put_put p8_1.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=50319 https://www.lexaloffle.com/bbs/?tid=50319 Wed, 23 Nov 2022 01:10:38 UTC Smallmapperthingybob <p> <table><tr><td> <a href="/bbs/?pid=120657#p"> <img src="/bbs/thumbs/pico8_smallmapperthingybob-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=120657#p"> smallmapperthingybob</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=120657#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Resolved</h1> <h3>Help!</h3> <p>I recently made this little function to show the map at any size.<br /> However, I am not satisfied with it. It does not represent decimal sizes properly,<br /> (those weird breaks in between) it does not show any width/height except 16/16.<br /> Also, looking back over my code, I am pretty sure it could be done better.<br /> Any help or suggestions welcome.</p> https://www.lexaloffle.com/bbs/?tid=50220 https://www.lexaloffle.com/bbs/?tid=50220 Mon, 14 Nov 2022 03:53:21 UTC Asteroids 2 <p> <table><tr><td> <a href="/bbs/?pid=116953#p"> <img src="/bbs/thumbs/pico8_asteroids2-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=116953#p"> asteroids2</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=116953#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Attention!</h1> <h3>Pilots needed urgently!</h3> <p>The star Mimiar imploded, and shattered a dwarf planet that was orbiting it.<br /> <strong>Ginormous</strong> asteroids are now hurtling towards Thrawn, the home of millions of unsuspecting people.<br /> We must destroy the asteroids before it is too late!</p> <h2>Buttons</h2> <p>X &ndash; Use power up.<br /> Z &ndash; Build energy, release to fire.<br /> Arrow keys &ndash; Movement.</p> <h2>How to play</h2> <p>Steer your ship across the screen, making sure to dodge the asteroids. Tap Z to fire a small bullet or<br /> press and hold to build up energy. Collect the power ups that float across the screen, because they can<br /> be very helpful. Press X to use them.<br /> Your ship's energy meter is displayed in the top left corner. (Bottom<br /> left for player 2)</p> <h2>Credits</h2> <p>Special thanks to:<br /> Sam, Dad, Doc Robs, The Roboz, Krystman.<br /> This game wouldn't be nearly as nice as it is without their help. </p> https://www.lexaloffle.com/bbs/?tid=49208 https://www.lexaloffle.com/bbs/?tid=49208 Mon, 05 Sep 2022 22:15:24 UTC Loan simulator <p> <table><tr><td> <a href="/bbs/?pid=114252#p"> <img src="/bbs/thumbs/pico8_loan_simulator-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=114252#p"> Loan simulator</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=114252#p"> [Click to Play]</a> </td></tr></table> <br /> In keeping with my name, I have created a loan simulator. It's nothing fancy, although, I did add<br /> some bells and whistles.<br /> It can handle $120 owed, $120 paid per month, and, interest rates from 100-200%.</p> <h2>Buttons:</h2> <p><em>X</em> - Move time forward.<br /> <em>O</em> - Move time backward.<br /> <em>Up</em> - Change menu items.<br /> <em>Down</em> - Bring down menu/Change menu items.<br /> <em>Left</em> - Move time forward/Change menu items.<br /> <em>Right</em> - Move time backward/Change menu items.</p> <h2>Behind the scenes:</h2> <p>Take away everything else and this is just a mathematical function f(x)=(Owed-Paid_per_month)*interest.<br /> X grows or shrinks every loop and the result is drawn to the screen.</p> <h2>Programming notes:</h2> <p>I used the map and the tline function to create the blue background.<br /> The paid info at the top is not bottom accurate, it is calculated by Paid_per_month*X (or time).<br /> The line graph will have spotty changes if you move back and forth due to the difference in pixel size<br /> versus calculation. (1.5 will round to 2 when drawing.)</p> https://www.lexaloffle.com/bbs/?tid=48491 https://www.lexaloffle.com/bbs/?tid=48491 Tue, 12 Jul 2022 21:31:03 UTC Star Trip pics <p> <table><tr><td> <a href="/bbs/?pid=113774#p"> <img src="/bbs/thumbs/pico8_star_trip_pics-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=113774#p"> Star Trip pics</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=113774#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Reuseable.</h2> <p>Please feel free to use these game assets.</p> <h3>If you do make a game, PLEASE post it here or send me a link, so I can check it out.</h3> <p>Happy programming!</p> https://www.lexaloffle.com/bbs/?tid=48345 https://www.lexaloffle.com/bbs/?tid=48345 Tue, 28 Jun 2022 20:23:44 UTC Extreme Pong <p> <table><tr><td> <a href="/bbs/?pid=108302#p"> <img src="/bbs/thumbs/pico8_pongbygeneralchaos-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=108302#p"> Pong playtest v2</a><br><br> by <a href="/bbs/?uid=63962"> Loan Wulf</a> <br><br><br> <a href="/bbs/?pid=108302#p"> [Click to Play]</a> </td></tr></table> </p> <h3>Ever wondered what it would be like if pong went to the next level?</h3> <p>I think I may have found the answer. Try it out and tell me what you think.</p> <p>Special thanks to dw817 for play-testing.</p> <p><strong>Note:</strong> Feels WAY better in full screen.</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/63962/pong_1.png" alt="" /> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/63962/pong_2.gif" alt="" /> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/63962/pong_0.png" alt="" /> <h1>Controls</h1> <h3>P1:</h3> <p>Use Z or X to accept/continue/etc.<br /> Up and down arrows to move/select.<br /> Left and right arrows to select difficulty. (Only at menu)</p> <h3>P2:</h3> <p>Use up and down arrows to move.</p> <h1>Rules</h1> <p>Try to get the ball past your opponent to score a goal(edge of screen) by moving your paddle into the<br /> ball's path.<br /> Move your paddle to keep the ball away from your goal.<br /> The first player to win 2 matches wins the game!</p> <h1>Behind the scenes</h1> <p>This is my first pico-8 game ever. I thought I'd start with a classic.<br /> It took around 3 hours to code, most of which was fixing the collision detection.<br /> I ended up using some workarounds, including hard coding the take-off directions.<br /> (Edit):<br /> Fixed the takeoff by using a dy variable instead of direction, cos and cosine<br /> because I couldn't make it bounce correctly.<br /> The add-ons took about another 3 hours to code.</p> <h1>Credits</h1> <p><strong>doc_robs</strong>: Made the collision function.<br /> Coding and art (or lack of it) by me.<br /> Inspiration from playing the original PONG.<br /> Thanks to Lazy Devs for tips and tricks.</p> <h2>Versions:</h2> <p><strong>V1</strong> Released<br /> <strong>V2</strong> Added &quot;English&quot; spin<br /> Added cpu smart A.I.<br /> Changed ball speed<br /> Changed paddle speed<br /> Changed paddle size<br /> Changed hardness ratings<br /> Fixed collision issue<br /> <strong>V3</strong> Added quickstart<br /> Added insane hardness<br /> Added game over noise<br /> Added magnet mode<br /> Added extreme logo<br /> Added multiple ball spawn<br /> Added additional cpu support<br /> Added extreme mode<br /> Added extreme magnet mode<br /> Changed ball speed<br /> Changed player speed<br /> Changed menu x2<br /> Changed cpu targeting<br /> Fixed balldust direction<br /> Fixed player info display</p> https://www.lexaloffle.com/bbs/?tid=46905 https://www.lexaloffle.com/bbs/?tid=46905 Wed, 09 Mar 2022 00:59:04 UTC