jplopeznavarro [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=102541 Pico-8 Snippet Builder Tool <p>Hi!</p> <p>I created a Pico-8 snippet builder tool to help me organize the several files and functions I've collected during my time developing for pico-8.<br /> I'm confident others here have a similar struggle, and would find this useful, so I made it public in Github.<br /> The <code>Readme.MD</code> explains how to setup and use. Start by cloning or downloading the code. </p> <p>Code: <a href="https://github.com/jplopez/pico8-snippet-builder/">Pico-8 Snippet Builder</a> (Github)</p> <p>Any feedback to make this tool better for all the pico-8 community is greatly appreciated! Leave a comment or create a ticket on the Github repo. </p> <p>And if you want to contribute, even better! </p> https://www.lexaloffle.com/bbs/?tid=150215 https://www.lexaloffle.com/bbs/?tid=150215 Fri, 11 Jul 2025 20:54:31 UTC Santa's Sleight Rush <p>Santa's Sleight Rush</p> <p>Help santa to deliver all the presents on time! Avoid all the obstacles and make the most deliveries possible!</p> <p>Controls: use arrow keys to move santa and avoid the obstacles. Press x to drop the presents.</p> <p>Credits: Main idea and characters by Leo. Programming by JP (Leo's dad).</p> <p> <table><tr><td> <a href="/bbs/?pid=158975#p"> <img src="/bbs/thumbs/pico8_ssr_final-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=158975#p"> ssr_final</a><br><br> by <a href="/bbs/?uid=102541"> jplopeznavarro</a> <br><br><br> <a href="/bbs/?pid=158975#p"> [Click to Play]</a> </td></tr></table> </p> <p>Holidays are about family to me, so I made a game with my 10yo daughter. She provided most of the ideas and mechanics, did all the characters' sprites in Pico-8l, and QA'ed the whole thing! </p> <p>I'm super proud of the result we got!</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/102541/ssr_0.png" alt="" /> <p>Submitted for the 2024 Advent Calendar Gamejam.</p> https://www.lexaloffle.com/bbs/?tid=145997 https://www.lexaloffle.com/bbs/?tid=145997 Mon, 09 Dec 2024 15:46:14 UTC Help: Aspects for metatables <p>Hey,<br /> Out of curiosity, I wanted to implement Aspect Oriented Programming into metatables used as objects.<br /> I'm having trouble making the <code>__index</code> meta-method to work correctly. </p> <p>My goal is whenever the functions <code>update</code> or <code>draw</code> are executed, I also execute the functions called <code>pre_update</code>, <code>pre_draw</code> and <code>post_update</code> and <code>post_draw</code> if they exist in the same object. </p> <p>I can't make the code below to work. What am I doing wrong?</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 aop_mt(tbl) tbl = tbl or {} tbl.__index = function(tbl,key) local ogfunc = rawget(tbl, key) if (one_of(key, &quot;update&quot;, &quot;draw&quot;) and is_fun(ogfunc)) then local prefunc = rawget(tbl,&quot;pre_&quot;..key) local postfunc = rawget(tbl,&quot;post_&quot;..key) return function(self,...) if(prefunc) prefunc(self,...) local ret = ogfunc(self,...) if(postfunc) postfunc(self,...) return ret end end return ogfunc end return tbl end --creating an object using aop_mt object = { items = { {name=&quot;potion&quot;, qty=100, price=120, sell=100}, {name=&quot;medicine&quot;, qty=100, price=100, sell=80}, {name=&quot;revive&quot;, qty=10, price=300, sell=180}, {name=&quot;attack+&quot;, qty=10, price=400, sell=250}, }, --when I call this function, I also want 'pre_update' to run before, and 'post_update' to run after. update=function(self) -- update logic end, pre_update=function(self) -- pre-update logic end, post_update=function(self) -- post-update logic end, } setmetatable(shop,aop_mt()) --utils used above for reference function is_fun(f) return (f!=nil and type(f)==&quot;function&quot;) end function one_of(value, ...) if(select(&quot;#&quot;,...)==0) return false for arg in all({...})do if(value==arg) return true end return false 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=145555 https://www.lexaloffle.com/bbs/?tid=145555 Sun, 24 Nov 2024 00:37:44 UTC Parkanoid - Arkanoid-esque <p>Parkanoid, the Pico-8 Arkanoid.</p> <p>The most significant deviation from the original game is the &quot;Powerbar&quot;. It loads every time the ball hit bricks and loads faster you hit several bricks in a row before bouncing in the paddle (ship).<br /> When the Powerbar loads enough, the ball can break tougher bricks with one hit, and when its fully loaded it can destroy every brick, until it hits the ship again.</p> <p>Have fun! Let me know your thoughts and feedback in the comments.</p> <p> <table><tr><td> <a href="/bbs/?pid=153681#p"> <img src="/bbs/thumbs/pico8_kinageheye_1_2_2-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=153681#p"> kinageheye_1_2_2</a><br><br> by <a href="/bbs/?uid=102541"> jplopeznavarro</a> <br><br><br> <a href="/bbs/?pid=153681#p"> [Click to Play]</a> </td></tr></table> </p> <p>v-1.2.2<br /> Bug fixes:<br /> -Glue powerup was not removed after game over<br /> -Loading high scores was throwing 'out of memory' error.</p> <p>v-1.2.1</p> <p>Bug fix for sticky ball not placing in paddle correctly.</p> <p>v-1.2.0 </p> <p>Added music to all stages, powerups working, added some particle effects and keep iterating on improving some mechanics.</p> <hr /> <p>v-0.3.0</p> <p>The game isn't complete. Is missing some music and powerups do nothing for now. </p> <p>I've been a developer for 15+ years, but this is the first time I'm attempting to code a video game. I love the Pico-8 community and I'm having a great experience coding. </p> https://www.lexaloffle.com/bbs/?tid=144015 https://www.lexaloffle.com/bbs/?tid=144015 Tue, 03 Sep 2024 06:10:15 UTC Arkanoid Clone 0.0.2 - jplabs <p>Hi again!</p> <p>Here is the second early release of my very first game: an arkanoid-like clone. I'm not looking to replicate the original game exactly, but to use it as a base to learn in the process.</p> <p>I focused this release on cleaning the code - I was close to run out of tokens - and improving collisions.&nbsp;There aren't any visual/audio improvements from the 0.0.1 release (first release here: <a href="https://www.lexaloffle.com/bbs/?tid=143441">https://www.lexaloffle.com/bbs/?tid=143441</a>).</p> <p>Many thanks to everyone who took the time to play it and provide feedback. I'm looking at you <a href="https://www.lexaloffle.com/bbs/?uid=82211"> @RealShadowCaster</a>, your insights on the collision engine were very useful. Let me know what you think of this version. <table><tr><td> <a href="/bbs/?pid=152657#p"> <img src="/bbs/thumbs/pico8_jplabs001_2-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=152657#p"> Arkanoid clone 0.0.2 </a><br><br> by <a href="/bbs/?uid=102541"> jplopeznavarro</a> <br><br><br> <a href="/bbs/?pid=152657#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=143666 https://www.lexaloffle.com/bbs/?tid=143666 Thu, 15 Aug 2024 00:19:16 UTC Arkanoid-Clone 0.0.1 - jplabs001 <p> <table><tr><td> <a href="/bbs/?pid=152067#p"> <img src="/bbs/thumbs/pico8_jplabs001-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=152067#p"> Arkanoid-Clone 0.0.1 - jplabs001</a><br><br> by <a href="/bbs/?uid=102541"> jplopeznavarro</a> <br><br><br> <a href="/bbs/?pid=152067#p"> [Click to Play]</a> </td></tr></table> </p> <p>Hi! </p> <p>This is a very simple clone of Arkanoid, that I created to learn to code games in Pico8.<br /> Although I have 15 years of experience in coding, this is my first time programming a video game, which is an area I would like to work professionally.</p> <p>The game has the basic mechanics for collisions, levels and score. Some SFX but no music yet. I started to work on sprites when I decided to publish this version to gather feedback and ideas from the community.</p> https://www.lexaloffle.com/bbs/?tid=143441 https://www.lexaloffle.com/bbs/?tid=143441 Fri, 02 Aug 2024 20:32:42 UTC