josiebreck [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=49764 Snowfall (demo) <p> <table><tr><td> <a href="/bbs/?pid=145921#p"> <img src="/bbs/thumbs/pico64_snowfall-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145921#p"> snowfall</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=145921#p"> [Click to Play]</a> </td></tr></table> </p> <p>Made this to try my hand at using sin and cos to draw shapes. plus i just wanted to make some snow :3 I overclocked it with the number of snowflakes because i wanted to see as many as possible. the framerate drops aren't so bad for the subject matter anyway...</p> <p>EDIT: 1.1 Update!</p> <ul> <li>number of flakes and max radius fluctuates now so it's a much more dynamic screensaver</li> <li>refactored the code in a separate lua file for easy implementation into other projects</li> <li>&quot;manual&quot; mode with button inputs for messing around, also intended for anyone who wants to use this for their own thing. to access this, load the cart and set &quot;manual&quot; to true in snowflakes.lua </li> </ul> https://www.lexaloffle.com/bbs/?tid=141503 https://www.lexaloffle.com/bbs/?tid=141503 Sat, 06 Apr 2024 19:45:44 UTC in the land of BSOD HD Remaster <p> <table><tr><td> <a href="/bbs/?pid=145324#p"> <img src="/bbs/thumbs/pico64_bsod_hd-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145324#p"> in the land of BSOD HD Remaster</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=145324#p"> [Click to Play]</a> </td></tr></table> </p> <p>I posted <a href="https://www.lexaloffle.com/bbs/?tid=141313">my previous cart</a> in the Picotron discord and werxzy revised the code to work in the full resolution! now it looks much nicer. after that i made a few further edits to give it a little more polish and &quot;authenticity&quot; :3</p> https://www.lexaloffle.com/bbs/?tid=141334 https://www.lexaloffle.com/bbs/?tid=141334 Mon, 01 Apr 2024 12:20:30 UTC BSOD of the land (demo) <p> <table><tr><td> <a href="/bbs/?pid=145258#p"> <img src="/bbs/thumbs/pico64_bsod_of_the_land-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145258#p"> bsod_of_the_land</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=145258#p"> [Click to Play]</a> </td></tr></table> </p> <p>I tried to adapt <a href="https://demobasics.pixienop.net/tweetcarts/landofbsod">this classic tweetcart</a> for picotron. when i couldn't make it work the way i wanted i decided to break it further :3</p> https://www.lexaloffle.com/bbs/?tid=141313 https://www.lexaloffle.com/bbs/?tid=141313 Sun, 31 Mar 2024 16:04:16 UTC Everything Moves Like Water (demo) <p> <table><tr><td> <a href="/bbs/?pid=145051#p"> <img src="/bbs/thumbs/pico64_emlw-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145051#p"> Everything Moves Like Water</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=145051#p"> [Click to Play]</a> </td></tr></table> </p> <p>Second picotron project! I tried to recreate the plasma effects from <a href="https://demobasics.pixienop.net/tweetcarts/basics">this page</a> and ended up with this little ocean wave demo. monochrome palette code lifted straight from the swoosh.p64 screensaver, and it works perfectly for the subject matter :3 works well as a screensaver</p> https://www.lexaloffle.com/bbs/?tid=141253 https://www.lexaloffle.com/bbs/?tid=141253 Fri, 29 Mar 2024 23:34:35 UTC Eclypse demo <p> <table><tr><td> <a href="/bbs/?pid=144613#p"> <img src="/bbs/thumbs/pico64_eclypse-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=144613#p"> eclypse</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=144613#p"> [Click to Play]</a> </td></tr></table> </p> <p>very excited to get into picotron! here's my first project. taking advantage of the extra screen space for a simple landscape/chaotic night sky concept. feel free to use this as a wallpaper or a screensaver :3</p> <img style="margin-bottom:16px" border=0 src="/media/49764/eclypse.p64.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=141129 https://www.lexaloffle.com/bbs/?tid=141129 Wed, 27 Mar 2024 01:32:41 UTC PECS Fire <p>I'm working on a game which requires some fire. I looked at some examples of doom fire but while it looks really good the technique was often very cpu expensive and didn't really work how i wanted it to. I decided to use the ECS i am using for the rest of the game ( my edited version of Jess Telford's PECS <a href="https://github.com/josiebb/pecs">https://github.com/josiebb/pecs</a>) to come up with something close enough but cheaper. This is what i came up with. </p> <p> <table><tr><td> <a href="/bbs/?pid=94481#p"> <img src="/bbs/thumbs/pico8_pofejogeto-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=94481#p"> PECS Fire</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=94481#p"> [Click to Play]</a> </td></tr></table> </p> <p>Still working on making it resizeable and positionable, bc I want to use it more than just in the menu of my game. Also a lot of general use code in here that is intended to be used with the rest of the project.</p> https://www.lexaloffle.com/bbs/?tid=43682 https://www.lexaloffle.com/bbs/?tid=43682 Mon, 05 Jul 2021 14:53:11 UTC Puzzler/Platformer WIP (Collision Issues) <p>Hi! so I am attempting to make a platformer/puzzler game in which you are not supposed to get clears, or at least, not in the way you normally would. The idea as of now is to have clusters of 4-5 alike blocks make a clear which will cost HP/&quot;hearts&quot;/etc., but jumping to a certain height will clear the bottom rows, which will count towards your score. </p> <p>...But I can't even get to that part of the game yet, because collisions and some other little technical issues. This is what I have so far.</p> <p> <table><tr><td> <a href="/bbs/?pid=85599#p"> <img src="/bbs/thumbs/pico8_anticlearwip-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=85599#p"> anticlearwip</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=85599#p"> [Click to Play]</a> </td></tr></table> </p> <p>Controls:<br /> Left/Right = move character,<br /> Up = jump,<br /> X = move tetrad left or right,<br /> Down = soft drop,<br /> Z = rotate (not functional yet)</p> <p>right now, I am using the game object system from <a href="https://www.youtube.com/watch?v=NOcZonu65hE">bridg's Pico-8 for beginners tutorials</a>. here's the issue - I need the game blocks to fall and leave no gaps, much like in puyo puyo. to do this they need to collide with other blocks that are the same type of game object. when I put it in as normal, the block launches into the air when it's created. I think this is because it is colliding with itself.</p> <img style="margin-bottom:16px" border=0 src="/media/49764/workingcode_4.gif" alt="" /> <p>I was trying to do a solution using ipairs to compare the index number of the objects, so that I could exclude the current object and have it only collide with the others. the code i came up with doesn't exactly work, because I am unsure how to get the current object's index number. I feel like this is something resembling the solution though? am i going in the right direction here?</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>for i,b in ipairs(#objects)do if objects[i]!=self and objects[i.name]==&quot;tet&quot; then self:checkcollide(objects[i],0) self:handlecollide(objects[i],colldir) end 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>I'm also having issues where the tetrad, when it respawns, sometimes does not respond to the movement button anymore. it seems kind of random, like it might happen the first time it respawns or the fifth. here's the code for the tetrad-related inputs and the conditions that determine whether it goes left or right, which is all contained within the self.update function of the object.</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> if(self.x&gt;96) self.dx=-8 if(self.x&lt;16) self.dx=8 if self.islive then -- ❎ left/right if(btnp(5)) self.x+=self.dx -- 🅾️ rotate if(btnp(4)) then -- haven't got there yet! end -- ⬇️ soft drop if(btn(3)) self.y+=2 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>i think it may be the way i'm calling it within the statement:</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>if self.islive then</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>maybe sometimes it doesn't successfully call true? this is the code which is supposed to determine that.</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> inittetrad=function(self) if not self.islive then for i,b in ipairs (self.fblocks) do del(self.fblocks,b) end self.x=56 self.y=8 for i=0,3 do local s =flr(rnd(4)+1) if (#self.fblocks)&lt;4 then add(self.fblocks,s) -- end end end self.islive=true end 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>So, if anyone can see why any of this isn't working please let me know. I've only been working on this for a few weeks so I am very happy with the progress so far, hope that I can build something fun and memorable here. Here's another cart without the ipairs error so you can see the X button error.</p> <p> <table><tr><td> <a href="/bbs/?pid=85599#p"> <img src="/bbs/thumbs/pico8_anticlearwip_other-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=85599#p"> anticlearwip_other</a><br><br> by <a href="/bbs/?uid=49764"> josiebreck</a> <br><br><br> <a href="/bbs/?pid=85599#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=40854 https://www.lexaloffle.com/bbs/?tid=40854 Sun, 20 Dec 2020 03:38:01 UTC