collinthenewmaker [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=71079 Minesweeper by Collin <p>A second take on the minesweeper game. Priginally made in 2 hours and polished a couple of months later.</p> <p>D-pad - navigate<br /> X - Reveal tile<br /> O - mark tile as flagged</p> <p>Reveal numbered tiles when there are enough flags around it to reveal all neighboring unflagged tiles.</p> <p> <table><tr><td> <a href="/bbs/?pid=146708#p"> <img src="/bbs/thumbs/pico8_collin_minesweeper_1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=146708#p"> collin_minesweeper_1</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=146708#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141742 https://www.lexaloffle.com/bbs/?tid=141742 Mon, 15 Apr 2024 18:38:39 UTC mget() &amp; mset() to different map layers? <p>Also, calling map() draws only the first layer of the map..?</p> https://www.lexaloffle.com/bbs/?tid=141185 https://www.lexaloffle.com/bbs/?tid=141185 Thu, 28 Mar 2024 09:15:44 UTC How to capture / lock mouse in cartridge? <p>Is it even possible?<br /> Also how to get mouse dx dy after you do that?</p> https://www.lexaloffle.com/bbs/?tid=141169 https://www.lexaloffle.com/bbs/?tid=141169 Wed, 27 Mar 2024 18:57:36 UTC Matrix Wallpaper by Collin <p>Uses your theme's first two &quot;desktop&quot; colors for letters.</p> <p> <table><tr><td> <a href="/bbs/?pid=144730#p"> <img src="/bbs/thumbs/pico64_p64matrixwallpaper-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=144730#p"> Matrix Wallpaper by Collin 1.0</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=144730#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=141168 https://www.lexaloffle.com/bbs/?tid=141168 Wed, 27 Mar 2024 18:51:08 UTC Louie Zong - Hello World | Pico8 cover <p>Just a little cover of &quot;Hello World&quot; by Louie Zong<br /> <table><tr><td> <a href="/bbs/?pid=141264#p"> <img src="/bbs/thumbs/pico8_helloworldmusic-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=141264#p"> helloworldmusic</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=141264#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140136 https://www.lexaloffle.com/bbs/?tid=140136 Wed, 07 Feb 2024 18:29:08 UTC ENA's concert <p>a pico-8 cover of &quot;browser history&quot; by graham cartna<br /> featuring moony, ena and grena (trademark) from the hit tv show ena dream bbq<br /> <table><tr><td> <a href="/bbs/?pid=140034#p"> <img src="/bbs/thumbs/pico8_enabrowserhistory-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=140034#p"> enabrowserhistory</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=140034#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=139811 https://www.lexaloffle.com/bbs/?tid=139811 Fri, 12 Jan 2024 12:31:44 UTC Two Worlds <p>Originally made as my final college project, but polished and published 5 months later.</p> <p>Arrows to move.<br /> X to travel between &quot;planet's faces&quot;<br /> O to look into the other &quot;face&quot;<br /> O to read signs</p> <p> <table><tr><td> <a href="/bbs/?pid=137310#p"> <img src="/bbs/thumbs/pico8_two_worlds-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=137310#p"> two_worlds</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=137310#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=54988 https://www.lexaloffle.com/bbs/?tid=54988 Sun, 12 Nov 2023 10:19:38 UTC Random loot system <p>so today i made this<br /> use it as you want guys<br /> also maybe it's not token-efficient but<br /> i'll leave it up to you</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 randprob_from(l) --the function expects an --array of tables like these: --{p=0.5,v='item name'} --a &quot;p&quot; value between 0 and 1 --and a &quot;v&quot; value. --&quot;p&quot; is propability of the --&quot;v&quot; value being returned local lim=1 local value=rnd() for pos in all(l) do highlimit=lim lim-=pos.p lowlimit=lim if value&lt;highlimit and value&gt;=lowlimit then return pos.v end 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> <table><tr><td> <a href="/bbs/?pid=130207#p"> <img src="/bbs/thumbs/pico8_pipugozape-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=130207#p"> pipugozape</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=130207#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=52883 https://www.lexaloffle.com/bbs/?tid=52883 Sat, 27 May 2023 08:15:55 UTC Mini Legacy <p>Demake of Rogue Legacy 1, work in progress.<br /> Posted here to show my friends.<br /> <table><tr><td> <a href="/bbs/?pid=129287#p"> <img src="/bbs/thumbs/pico8_minilegacy-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=129287#p"> minilegacy</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=129287#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=52605 https://www.lexaloffle.com/bbs/?tid=52605 Tue, 02 May 2023 05:24:24 UTC Sakura by the seashore <p>Yep. That's it. <table><tr><td> <a href="/bbs/?pid=127356#p"> <img src="/bbs/thumbs/pico8_mudebeguso-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127356#p"> mudebeguso</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=127356#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=52092 https://www.lexaloffle.com/bbs/?tid=52092 Mon, 20 Mar 2023 10:30:58 UTC Cart runs on console, but fails to run in BBS <p>Hello! I've made a cart on my console and it runs there. But when I upload it onto BBS, it gives a syntax error.</p> <p>Error:<br /> syntax error line 5 (tab 1)<br /> -return fget(mget(x/8,y/8),f)<br /> &lt;eof&gt; expected near 'end'</p> <p>Function:</p> <p>function gfap(x,y,f)<br /> -return fget(mget(x/8,y/8),f)<br /> end</p> <p>i've marked indent spaces as '-'<br /> <table><tr><td> <a href="/bbs/?pid=127317#p"> <img src="/bbs/thumbs/pico8_nogafekone-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=127317#p"> nogafekone</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=127317#p"> [Click to Play]</a> </td></tr></table> </p> <p>Pico-8 version i made the game at: 0.2.5c</p> https://www.lexaloffle.com/bbs/?tid=52084 https://www.lexaloffle.com/bbs/?tid=52084 Sun, 19 Mar 2023 11:27:37 UTC 2d line map editor <p> <table><tr><td> <a href="/bbs/?pid=120768#p"> <img src="/bbs/thumbs/pico8_twodlineeditor-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=120768#p"> 2D Line Map Editor 1.0</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=120768#p"> [Click to Play]</a> </td></tr></table> </p> <h2>This tool allows you to map lines on a plane and export them into any of your carts.</h2> <p>Each line is represented as a table with values x1,y1,x2,y2.<br /> This is useful for raycast projects or whatever you need to map lines for.</p> <h3>Buttons (left-up corner of the screen, top to bottom):</h3> <p>Temp save: temporarily saves all line data to adresses 0x4300-0x5dff in console memory.<br /> Load: loads data at adresses 0x4300-0x5dff. Can be used as reserve copy.<br /> Toggle ruler: Each line displays it's length to the right of it's 2nd point.<br /> Export: allows you to type in your desired cart's name and export line data to it's addresses 0x4300-0x5dff. This overwrites your cartridge file so make sure you don't have anything valuable in there (sprites, map, sounds and, obviously, code are safe).</p> <h3>Modes: (down side of the screen, left to right):</h3> <p>Click: right-click to select the line and distplay it's info, left-click to deselect.<br /> Pan: left-click drag across the plane to view different parts of it.<br /> Draw: left-click and drag to create a new line at your pointer position.<br /> Delete: left-click near the line to delete it. Lines that will be affected are highlighted red.</p> <h3>Memory:</h3> <p>Each line takes 8 bytes of space (2 bytes per 16-bit variable, 4 variables).<br /> All memory in the aforementioed range is cleared before writing line data.</p> <h3>How to read line data back:</h3> <p>In your original cartridge, you can do something like this:</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> lines={} for i=0x4300,0x5dff,8 do local x1=peek2(i) local y1=peek2(i+2) local x2=peek2(i+4) local y2=peek2(i+6) local line={x1=x1,y1=y1,x2=x2,y2=y2} add(lines,line) 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=50241 https://www.lexaloffle.com/bbs/?tid=50241 Tue, 15 Nov 2022 19:44:46 UTC Dealing with range overflow <p>How do you deal with range overflow? The numbers beyond 32767 warp to -32766 in pico8's 16 bit signed system when calculating. This is sometimes enough, but not always. For example,</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 distance(x1,y1,x2,y2) return sqrt((x2-x1)^2+(y2-y1)^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>will sometimes (very often actually) return 0 as a result of taking sqrt of the negative wrapped number. This is occasionally crutial. Is there a workaround to compute this as if this was an unsigned system?</p> https://www.lexaloffle.com/bbs/?tid=50216 https://www.lexaloffle.com/bbs/?tid=50216 Sun, 13 Nov 2022 22:09:50 UTC Transferring data between cartridges <p> <table><tr><td> <a href="/bbs/?pid=120615#p"> <img src="/bbs/thumbs/pico8_kekewosoji-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=120615#p"> kekewosoji</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=120615#p"> [Click to Play]</a> </td></tr></table> <br /> So i watched lazy devs' youtube shorts about how he makes his shmup levels. In there he mentioned that he has different pico8 cartridges that work as tools for editing stuff like sprites, bullet patterns and level scenery. I coded a 2d space line editor that can be used for raycasting. How can i transfer all lines data to an another cartridge for use? There is a big &quot;lines&quot; table that containes tables with individual line data. I know that you can't transfer actual code or tables between carts so lazy devs should have used something different.</p> https://www.lexaloffle.com/bbs/?tid=50211 https://www.lexaloffle.com/bbs/?tid=50211 Sun, 13 Nov 2022 18:52:19 UTC minesweeper <p>as a minesweeper i can confirm that this is, indeed, minesweeper.<br /> <table><tr><td> <a href="/bbs/?pid=120477#p"> <img src="/bbs/thumbs/pico8_kitegijge-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=120477#p"> kitegijge</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=120477#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=50172 https://www.lexaloffle.com/bbs/?tid=50172 Fri, 11 Nov 2022 12:29:33 UTC Please help with bit operations <p>Hello everyone. Is there a way to write and read values to specific bits in a byte?<br /> For example:<br /> I have a variable 0x0000 .<br /> I want to write a 1 to the 3rd bit so it'll be<br /> 0x0100 . How can i do that?<br /> I want to later read that variable. How do I<br /> check the value of the 3st bit? I haven't operated<br /> with bits &amp; bytes before.</p> https://www.lexaloffle.com/bbs/?tid=50099 https://www.lexaloffle.com/bbs/?tid=50099 Mon, 07 Nov 2022 17:55:04 UTC