Saturn91 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=48932 circle_collision_example <p> <table><tr><td> <a href="/bbs/?pid=145104#p"> <img src="/bbs/thumbs/pico8_circle_collision_example-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145104#p"> circle_collision_example</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=145104#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a simple example on how circle collision works.</p> <p>All you need from this cartridge is the function: </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 circ_col(c1, c2) local dx = c1.pos.x - c2.pos.x local dy = c1.pos.y - c2.pos.y local distance = sqrt(dx*dx + dy*dy) return distance &lt;= (c1.r + c2.r) 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>If you want to check if two circles are colliding, you simply pass them as parameters c1 and c2 see an example bellow:</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>c1 = { pos={x=64,y=64}, r = 4 --size the radius would have to be for a 8x8 sprite } c2 = { pos={x=70,y=70}, r = 8 --size the radius would have to be for a 8x8 sprite } collides = false function _update() collides = circ_col(c1, c2) end function _draw() cls() if collides then print(&quot;colliding&quot;,4,4,11) end --draw the circles here - mind you in most projects you woudn't, usually you would have them invisible and have them --at the same position (or slightly offsetted) as your player --i would recommend drawing them anyway at the start to see that the are always where they are supposed to be circ(c1.pos.x,c2.pos.y,c1.r,11) circ(c2.pos.x,c2.pos.y,c2.r,8) end function circ_col(c1, c2) local dx = c1.pos.x - c2.pos.x local dy = c1.pos.y - c2.pos.y local distance = sqrt(dx*dx + dy*dy) return distance &lt;= (c1.r + c2.r) 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=141270 https://www.lexaloffle.com/bbs/?tid=141270 Sat, 30 Mar 2024 10:25:54 UTC Untitled <p> <table><tr><td> <a href="/bbs/?pid=144142#p"> <img src="/bbs/thumbs/pico8_handy_timer-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=144142#p"> handy_timer</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=144142#p"> [Click to Play]</a> </td></tr></table> A handy timer for a class I will hold on pico8. Screensaver in the Background is not by me but by: <a href="https://www.lexaloffle.com/bbs/?uid=8220"> @Fortyseven</a> <table><tr><td> <a href="/bbs/?pid=144142#p"> <img src="/bbs/thumbs/pico8_handy_timer-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=144142#p"> handy_timer</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=144142#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140996 https://www.lexaloffle.com/bbs/?tid=140996 Fri, 22 Mar 2024 15:44:00 UTC Rabbits first game <p> <table><tr><td> <a href="/bbs/?pid=141233#p"> <img src="/bbs/thumbs/pico8_rabbits_first_game-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=141233#p"> rabbits_first_game</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=141233#p"> [Click to Play]</a> </td></tr></table> <br /> This is the first game made by rabbit, my german friend.</p> https://www.lexaloffle.com/bbs/?tid=140128 https://www.lexaloffle.com/bbs/?tid=140128 Tue, 06 Feb 2024 21:23:12 UTC A dicy boss fight <p> <table><tr><td> <a href="/bbs/?pid=114796#p"> <img src="/bbs/thumbs/pico8_a_dicy_boss_fight-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=114796#p"> a_dicy_boss_fight</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=114796#p"> [Click to Play]</a> </td></tr></table> # A dicy boss fight<br /> Oh no! All the bosses of our past video games have decided to fight us :S Please help us defeating them!</p> <p>how to play:</p> <p>Roll the dice to fight each boss. The damage dealt depends on the dice results. You can re-roll a few dice per round. But beware, the opponent does the same! After defeating the boss, you can swap one die with the opponent. There are different dice, try to collect the best ones! Roll combos to get bonuses.</p> <h1>controls:</h1> <ul> <li>x: X on keyboard</li> <li>o: C on keyboard</li> <li>use arrow keys to select dice and options</li> </ul> <h1>about:</h1> <ul> <li>made in about 24h for the GMTK Jam 2022</li> <li>made with pico-8</li> <li>made by saturn91 and EinsteinsErbe</li> </ul> https://www.lexaloffle.com/bbs/?tid=48653 https://www.lexaloffle.com/bbs/?tid=48653 Mon, 25 Jul 2022 10:24:59 UTC apocalypse_dog <p> <table><tr><td> <a href="/bbs/?pid=108452#p"> <img src="/bbs/thumbs/pico8_apocalypse_dog-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=108452#p"> apocalypse_dog</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=108452#p"> [Click to Play]</a> </td></tr></table> </p> <p>MAde within less than 10h coding and development time :D for a mini jam, not best, not my worst.</p> https://www.lexaloffle.com/bbs/?tid=46935 https://www.lexaloffle.com/bbs/?tid=46935 Fri, 11 Mar 2022 16:51:53 UTC Untitled <p> <table><tr><td> <a href="/bbs/?pid=98894#p"> <img src="/bbs/thumbs/pico8_saturn91sparticles-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=98894#p"> saturn91sparticles</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=98894#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is an example for an easy to use particle system.</p> <p>to use it in your own cartridge do the following: copy the code in tab1 into one of your code tabs</p> <p>Use it in the project as follows:</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 _init() init_particles() end function _update() update_particles() if btnp(🅾️) then particle_burst( {x=63, y=63}, //pos on screen 10, //num of particels 2, //life time (in sec) 0, //form 0=rnd 1=pixel,2=circles,3=rect 2, //size 3, //color 2 //speed of particles ) end end function _draw() cls() draw_particles() print(&quot;press 🅾️ for burst&quot;, 32, 40, 7) 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=45065 https://www.lexaloffle.com/bbs/?tid=45065 Wed, 20 Oct 2021 10:11:45 UTC traffic_jam <p> <table><tr><td> <a href="/bbs/?pid=94601#p"> <img src="/bbs/thumbs/pico8_traffic_jam-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=94601#p"> traffic_jam</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=94601#p"> [Click to Play]</a> </td></tr></table> <br /> Yes it is your typical Snake. With some dramatic music and prorgammed in Pico8.</p> <p>Controls as usual:</p> <ul> <li>Arrows: movement</li> <li>x and c anything else</li> </ul> https://www.lexaloffle.com/bbs/?tid=43716 https://www.lexaloffle.com/bbs/?tid=43716 Thu, 08 Jul 2021 22:13:04 UTC Satelite-Catcher <p> <table><tr><td> <a href="/bbs/?pid=94300#p"> <img src="/bbs/thumbs/pico8_satelite_catcher-6.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=94300#p"> satelite_catcher</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=94300#p"> [Click to Play]</a> </td></tr></table> Satelite Catcher</p> <p>You are a space mechanics whos job it is to bring back damaged satalites. But beware of the explosions arround you.</p> <p>Don't ask the pilot where the explosions come from... He has no clue </p> <ul> <li>Version 6: improved Game ending and colisions</li> </ul> https://www.lexaloffle.com/bbs/?tid=43631 https://www.lexaloffle.com/bbs/?tid=43631 Thu, 01 Jul 2021 15:27:47 UTC saturn91devilskitchen_1 <p> <table><tr><td> <a href="/bbs/?pid=92834#p"> <img src="/bbs/thumbs/pico8_saturn91devilskitchen_1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=92834#p"> saturn91devilskitchen_1</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=92834#p"> [Click to Play]</a> </td></tr></table> </p> <h1>The Game</h1> <p>You are one of the devils many servant and have to feed him in time. And your workshedule is litarly hell!! Can you make it trough your shift?</p> <h2>How to Play</h2> <p>It is a combination of cocking and Platforming. You can beat the 20 Levels one after an other or in a pretty challenging Speedrun mode. </p> <p>You start with 3 Health, if you get damaged you can refill your health by eating some of the food, but the Master does not like this :D.</p> <h1>Details</h1> <p>This is the Release version of my Game Devil's Kitchen :D I programmed it on and off between february 2021 and Mai 2021. The deepest barebone mechanics are loosly based on this <a href="https://www.youtube.com/watch?v=GTpd8Lb9CX0&amp;amp;t=317s">Video</a> by the youtuber <a href="https://www.youtube.com/channel/UCbMjF_cWciuBUZjILNL1fyA">Nerdy Teacher</a></p> <p>All in all he has some great videos for beginners to offer but especially the platformer series is genius!</p> <p>Have fun :D</p> <p>Get more like this on <a href="https://saturn91.dev/">Saturn91.dev</a></p> https://www.lexaloffle.com/bbs/?tid=43128 https://www.lexaloffle.com/bbs/?tid=43128 Mon, 31 May 2021 08:03:37 UTC devil_s_kitchen <p> <table><tr><td> <a href="/bbs/?pid=88975#p"> <img src="/bbs/thumbs/pico8_devil_s_kitchen-9.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=88975#p"> devil_s_kitchen</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=88975#p"> [Click to Play]</a> </td></tr></table> </p> <p>You are the devil'c cook and you are busy. This job is litarly hell. Have I already mentioned that the devil gets angry if you are not fast enough?</p> <p>Be quick, be fast - HE is hungry!!</p> <p>(first 15 Levels implemented)</p> https://www.lexaloffle.com/bbs/?tid=42004 https://www.lexaloffle.com/bbs/?tid=42004 Sun, 14 Mar 2021 21:29:34 UTC Energy not included <p> <table><tr><td> <a href="/bbs/?pid=85171#p"> <img src="/bbs/thumbs/pico8_saturns91_energy_not_included-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=85171#p"> saturns91_energy_not_included</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=85171#p"> [Click to Play]</a> </td></tr></table> A small game made within a week for the &quot;Major Jam 3 - Retro&quot; limitations: 96x96</p> https://www.lexaloffle.com/bbs/?tid=40712 https://www.lexaloffle.com/bbs/?tid=40712 Tue, 08 Dec 2020 21:50:51 UTC thevoid_saturn91_v1_1 <p><img style="margin-bottom:16px" border=0 src="/media/48932/Banner.png" alt="" /> <table><tr><td> <a href="/bbs/?pid=84661#p"> <img src="/bbs/thumbs/pico8_thevoid_saturn91_v1_1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84661#p"> thevoid_saturn91_v1_1</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=84661#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=40548 https://www.lexaloffle.com/bbs/?tid=40548 Tue, 24 Nov 2020 20:30:29 UTC thevoid_saturn91_v1 <p> <table><tr><td> <a href="/bbs/?pid=84593#p"> <img src="/bbs/thumbs/pico8_thevoid_saturn91-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=84593#p"> thevoid_saturn91_v1</a><br><br> by <a href="/bbs/?uid=48932"> Saturn91</a> <br><br><br> <a href="/bbs/?pid=84593#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=40529 https://www.lexaloffle.com/bbs/?tid=40529 Sun, 22 Nov 2020 08:36:32 UTC