rik-x [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=29130 Zoomable Camera <p>Here's a proof-of-concept for a zoomable camera:</p> <p>Features</p> <ul> <li>Multiple cameras</li> <li>Set target coordinates, drawn at the camera center</li> <li>Set zoom factor, for drawing scaled map and sprites</li> </ul> <p>Functionality</p> <ul> <li>camera.get_center()</li> <li>camera.set_target(x, y)</li> <li>camera.get_target()</li> <li>camera.start_draw()</li> <li>camera.draw_map(tx, ty, tw, th, x, y)</li> <li>camera.draw_spr(s, x, y)</li> <li>camera.draw_sspr(sx, sy, sw, sh, x, y)</li> <li>camera.end_draw()</li> </ul> <p>Relies on <a href="https://www.reddit.com/r/pico8/comments/17a00b0/smap_for_scaling_a_map_section_in_pico8/">this smap function</a>. Code is below or via <a href="https://github.com/rik-cross/pico8/blob/main/zoomable_camera.p8">GitHub</a>.</p> <p> <table><tr><td> <a href="/bbs/?pid=145973#p"> <img src="/bbs/thumbs/pico8_zoomable_camera-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145973#p"> zoomable_camera</a><br><br> by <a href="/bbs/?uid=29130"> rik-x</a> <br><br><br> <a href="/bbs/?pid=145973#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141526 https://www.lexaloffle.com/bbs/?tid=141526 Sun, 07 Apr 2024 12:26:37 UTC Tutorial: Create a 'Tron' clone in 45 minutes <p>Hi all, here's a tutorial for creating a clone of the game 'Tron' (click the image below):</p> <p><a href="https://youtu.be/-9dVfBCCDJQ?si=ElVnYSW8Kbw6QKOc"><img style="margin-bottom:16px" border=0 src="/media/29130/tron.jpg" alt="" /></a></p> <p>The code can be found below, or on <a href="https://github.com/rik-cross/pico8-tron/blob/main/tron.p8">GitHub</a></p> <p> <table><tr><td> <a href="/bbs/?pid=145970#p"> <img src="/bbs/thumbs/pico8_tron_clone-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145970#p"> tron_clone</a><br><br> by <a href="/bbs/?uid=29130"> rik-x</a> <br><br><br> <a href="/bbs/?pid=145970#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141523 https://www.lexaloffle.com/bbs/?tid=141523 Sun, 07 Apr 2024 11:58:35 UTC Tutorial: Circular Movement and Wavy Text <p>Hi all, here's a tutorial for creating circular movement, including 'wavy' and circular text (click the image below):</p> <p><a href="https://youtu.be/hBGMhQt08zg?si=LfqIun7sboj_swuZ"><img style="margin-bottom:16px" border=0 src="/media/29130/3_pico-8.png" alt="" /></a></p> <p>The code can be found below, or on <a href="https://github.com/rik-cross/pico8/blob/main/circular_movement.p8">GitHub</a></p> <p> <table><tr><td> <a href="/bbs/?pid=145969#p"> <img src="/bbs/thumbs/pico8_circular_movement-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145969#p"> circular_movement</a><br><br> by <a href="/bbs/?uid=29130"> rik-x</a> <br><br><br> <a href="/bbs/?pid=145969#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141522 https://www.lexaloffle.com/bbs/?tid=141522 Sun, 07 Apr 2024 11:51:20 UTC Tutorial: Creating an RPG using the Entity-Component-System pattern <p>Hi!,</p> <p>I recently started making an open-world adventure game, and thought I'd record myself making it.</p> <p><a href="https://www.youtube.com/playlist?list=PLQaniv5ve2yh6PGgw_Pg7OE6dDLVhpxAA">Here's a link to the playlist.</a></p> <p>The game makes use of the Entity-Component-System pattern, mainly because I wanted to learn how it works. I'm not quite sure how the game will end up looking, but it'll probably draw heavily from games like Zelda, Don't Starve, Stardew Valley and Moonlighter.</p> <p>The rules I've imposed on myself are:</p> <ul> <li>I won't think <em>too much</em> about what I'll be doing before recording</li> <li>Videos should be between 15 and 30 minutes in length</li> <li>I'll aim to record at least 1 video a week</li> </ul> <p>I won't edit the videos, so that others can see my thought process / mistakes</p> <p>The above rules might mean the video series is of questionable quality, but I'm enjoying making them anyway, and am learning a lot myself.</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=32236 https://www.lexaloffle.com/bbs/?tid=32236 Tue, 13 Nov 2018 16:48:24 UTC Battle <p> <table><tr><td> <a href="/bbs/?pid=58114#p"> <img src="/bbs/thumbs/pico58113.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=58114#p"> Battle 0.1</a><br><br> by <a href="/bbs/?uid=29130"> rik-x</a> <br><br><br> <a href="/bbs/?pid=58114#p"> [Click to Play]</a> </td></tr></table> </p> <p>Hi all, here's a multi-player open-world shooter I'm working on, using an entity-component-system model,<br /> I'd love feedback, and am also interested in collaborating on this game (or a new one) with anyone interested.</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=32086 https://www.lexaloffle.com/bbs/?tid=32086 Thu, 18 Oct 2018 16:34:01 UTC Burger Queem <p> <table><tr><td> <a href="/bbs/?pid=53215#p"> <img src="/bbs/thumbs/pico53214.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53215#p"> Burger Queem 1</a><br><br> by <a href="/bbs/?uid=29130"> rik-x</a> <br><br><br> <a href="/bbs/?pid=53215#p"> [Click to Play]</a> </td></tr></table> </p> <p>Here's my first game for Pico-8...</p> <p>Burger Queem!<br /> Build burgers to order, by catching food items as they fall.</p> <p>Instructions:<br /> Left and right arrow keys to move.<br /> Move to the far right to serve a burger<br /> Move to the far left to bin a burger</p> https://www.lexaloffle.com/bbs/?tid=31360 https://www.lexaloffle.com/bbs/?tid=31360 Sat, 02 Jun 2018 13:36:18 UTC