collinthenewmaker [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=71079 How to doodle a distorted electric guitar waveform? <p>Any ideas on how to doodle something that sounds at least remotely like one?</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/71079/Screenshot from 2024-10-20 17-57-06.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=144835 https://www.lexaloffle.com/bbs/?tid=144835 Sun, 20 Oct 2024 13:32:05 UTC Check if a given SFX (0-7) is a custom waveform or not <p>There are 8 sound effects (โ„–0-โ„–7) that can be interpreted either as a custom instrument or a custom waveform. Where in memory does a pico-8 cart store information about what sfx is in waveform-mode? Im guessing there's a byte somewhere in memory with each of its bits corresponding to each SFX mode. The question is - what's the address?</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/71079/waveforminstrument.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=144587 https://www.lexaloffle.com/bbs/?tid=144587 Fri, 04 Oct 2024 09:23:10 UTC VJ8 - a VJing tool for PICO-8 <h1>VJ8 - A PICO-8 VJing tool</h1> <h3>Add visuals to your music</h3> <p>Get your best playlist blasting, get VJ8 rolling and get the rave going! Use your joystick to change <strong>ANIMS</strong> - short procedural (or not) animations that put you into trance (effect not guaranteed). Comes with a free distasteful demo song!(i cant make musik)</p> <h3>Use your own animations</h3> <p>Grab your old fancy demos and tweetcarts and turn them into something to be played at the party - just drop the code into VJ8.</p> <h3>The beat's about to drop</h3> <p>Hold the X button during intense parts of your song and let the visuals do their work.</p> <h2>Controls:</h2> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></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>โฌ…๏ธ - p๐˜ณ๐˜ฆ๐˜ท๐˜ช๐˜ฐ๐˜ถ๐˜ด ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. โžก๏ธ - n๐˜ฆ๐˜น๐˜ต ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. โฌ‡๏ธ - r๐˜ฆ๐˜ด๐˜ต๐˜ข๐˜ณ๐˜ต ๐˜ค๐˜ถ๐˜ณ๐˜ณ๐˜ฆ๐˜ฏ๐˜ต ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. (๐˜ง๐˜ฐ๐˜ณ ๐˜ด๐˜ต๐˜ถ๐˜ต๐˜ต๐˜ฆ๐˜ณ ๐˜ฆ๐˜ง๐˜ง๐˜ฆ๐˜ค๐˜ต๐˜ด) โฌ†๏ธ(hold) - s๐˜ต๐˜ข๐˜ณ๐˜ต ๐˜ฑ๐˜ญ๐˜ข๐˜บ๐˜ช๐˜ฏ๐˜จ ๐˜ฃ๐˜ณ๐˜ฆ๐˜ข๐˜ฌ. s๐˜ช๐˜ฎ๐˜ฑ๐˜ญ๐˜บ ๐˜ณ๐˜ฆ๐˜ญ๐˜ฆ๐˜ข๐˜ด๐˜ฆ โฌ†๏ธ ๐˜ต๐˜ฐ ๐˜ด๐˜ต๐˜ข๐˜ณ๐˜ต ๐˜ฑ๐˜ญ๐˜ข๐˜บ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฏ๐˜ฆ๐˜น๐˜ต ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. a๐˜ญ๐˜ต๐˜ฆ๐˜ณ๐˜ฏ๐˜ข๐˜ต๐˜ช๐˜ท๐˜ฆ๐˜ญ๐˜บ,๐˜ธ๐˜ฉ๐˜ช๐˜ญ๐˜ฆ ๐˜ฉ๐˜ฐ๐˜ญ๐˜ฅ๐˜ช๐˜ฏ๐˜จ โฌ†๏ธ ๐˜ฑ๐˜ณ๐˜ฆ๐˜ด๐˜ด โฌ…๏ธ ๐˜ฐ๐˜ณ โžก๏ธ ๐˜ต๐˜ฐ ๐˜ฑ๐˜ญ๐˜ข๐˜บ ๐˜ฑ๐˜ณ๐˜ฆ๐˜ท๐˜ช๐˜ฐ๐˜ถ๐˜ด ๐˜ข๐˜ฏ๐˜ช๐˜ฎ ๐˜ฐ๐˜ณ ๐˜ด๐˜ต๐˜ข๐˜ณ๐˜ต ๐˜ฑ๐˜ญ๐˜ข๐˜บ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฏ๐˜ฆ๐˜น๐˜ต ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. y๐˜ฐ๐˜ถ ๐˜ค๐˜ข๐˜ฏ ๐˜ข๐˜ญ๐˜ด๐˜ฐ ๐˜ฑ๐˜ณ๐˜ฆ๐˜ด๐˜ด โฌ‡๏ธ ๐˜ช๐˜ฏ๐˜ด๐˜ต๐˜ฆ๐˜ข๐˜ฅ ๐˜ต๐˜ฐ ๐˜ณ๐˜ฆ๐˜ด๐˜ต๐˜ข๐˜ณ๐˜ต ๐˜ต๐˜ฉ๐˜ฆ ๐˜ข๐˜ฏ๐˜ช๐˜ฎ ๐˜ต๐˜ฉ๐˜ข๐˜ต ๐˜ธ๐˜ข๐˜ด ๐˜ฑ๐˜ญ๐˜ข๐˜บ๐˜ช๐˜ฏ๐˜จ. โŽ(hold) - t๐˜ถ๐˜ณ๐˜ฃ๐˜ฐ(๐˜ช๐˜ฏ๐˜ต๐˜ฆ๐˜ฏ๐˜ด๐˜ฆ) ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ. hold ๐˜ฅ๐˜ถ๐˜ณ๐˜ช๐˜ฏ๐˜จ ๐˜ช๐˜ฏ๐˜ต๐˜ฆ๐˜ฏ๐˜ด๐˜ฆ ๐˜ฑ๐˜ข๐˜ณ๐˜ต๐˜ด ๐˜ฐ๐˜ง ๐˜ต๐˜ฉ๐˜ฆ ๐˜ด๐˜ฐ๐˜ฏ๐˜จ (๐˜ต๐˜ฐ ๐˜ด๐˜ฑ๐˜ฆ๐˜ฆ๐˜ฅ ๐˜ถ๐˜ฑ ๐˜ข๐˜ฏ๐˜ช๐˜ฎ๐˜ด, ๐˜ง๐˜ฐ๐˜ณ ๐˜ฆ๐˜น๐˜ข๐˜ฎ๐˜ฑ๐˜ญ๐˜ฆ). y๐˜ฐ๐˜ถ ๐˜ฉ๐˜ข๐˜ท๐˜ฆ ๐˜ต๐˜ฐ ๐˜ช๐˜ฎ๐˜ฑ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต ๐˜ต๐˜ฉ๐˜ช๐˜ด ๐˜ฎ๐˜ข๐˜ฏ๐˜ถ๐˜ข๐˜ญ๐˜ญ๐˜บ ๐˜ช๐˜ฏ ๐˜บ๐˜ฐ๐˜ถ๐˜ณ ๐˜ข๐˜ฏ๐˜ช๐˜ฎ. e๐˜น๐˜ข๐˜ฎ๐˜ฑ๐˜ญ๐˜ฆ: if (btn(โŽ))turbo_mode=true ... if (turbo_mode)speed=speed*10</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> <h2>What are anims &amp; breaks (manual from tab โ„–2)</h2> <p><div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></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>--[[ -=anims=- an anim is an animation. all anims are stored in all_anims table and are being cycled through (or picked at random (see random_anims)) during performance. !all_anims is a zero-based table! an anim in all_anims table can be either a table (init-update-draw anim)...: all_anims={ --this is an anim [0]={ init=*function*, update(optional)=*function*, draw=*function* }, --this is also an anim { init=*function*, update(optional)=*function*, draw=*function* }, } ...or a function (draw-only anim): all_anims={ --this is an anim [0]=function() -- _draw() code here end, } learn more about init-update-draw anims and draw-only anims by searching(ctrl+f) the star symbol (shift+s) ]] --[[ -=breaks=- a break is a short anim to be played in-between regualr anims. it's triggered by pressing and holding the โฌ†๏ธ button. breaks are stored in break_anims table. just like regular anims, a break can be a table (init-update-draw) or a function (draw-only). ]]</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div><br /> <table><tr><td> <a href="/bbs/?pid=155026#p"> <img src="/bbs/thumbs/pico8_vj8_newmaker_1-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=155026#p"> vj8_newmaker_1</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=155026#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=144489 https://www.lexaloffle.com/bbs/?tid=144489 Sun, 29 Sep 2024 11:30:44 UTC Middle Dave - 8-bit cover (From Sheriff Domestic) <p>A cover of &quot;Middle Dave&quot; theme from the hit Playstation 10 game &quot;Sheriff Domestic&quot; available for purchase in your local gas station. Definetely one of the middles of the Daves(tm).</p> <h1>Whistle version:</h1> <p> <table><tr><td> <a href="/bbs/?pid=151835#p"> <img src="/bbs/thumbs/pico8_collin_middle_dave_whistle-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=151835#p"> collin_middle_dave_whistle</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=151835#p"> [Click to Play]</a> </td></tr></table> </p> <h1>No-Whistle version:</h1> <p> <table><tr><td> <a href="/bbs/?pid=151835#p"> <img src="/bbs/thumbs/pico8_collin_middle_dave_no_whistle-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=151835#p"> collin_middle_dave_no_whistle</a><br><br> by <a href="/bbs/?uid=71079"> collinthenewmaker</a> <br><br><br> <a href="/bbs/?pid=151835#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=143335 https://www.lexaloffle.com/bbs/?tid=143335 Sat, 27 Jul 2024 12:10:46 UTC Your thoughts on Pico-8's &quot;fantasy&quot; year of release? <p>Hey everyone.<br /> What year do you think Pico-8 would've been released if it was a real console that physically existed?<br /> Late 80's? 90's? Before or after NES? Let's talk about this.<br /> P.S. Another topic, would Pico-8 be a hand-held or a home console? Personally, I think<br /> it'd be a cube-shaped home console, square-sided just like its display. Similar to GameCube but more &quot;cuber&quot; (with equal dimentions) and quite small in size. Regarding the colors, i think dark grey body with a red outline would look stylish. Like on the picture, but a different color.</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/71079/Screenshot 2024-07-17 at 14-33-56 pico8 console - ะŸะพะธัะบ ะฒ Google.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=143188 https://www.lexaloffle.com/bbs/?tid=143188 Wed, 17 Jul 2024 10:13:16 UTC 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