gigs [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=14814 Best place to learn polygons/3d in P8? <p>Been seeing some amazing things in Pico-8 lately and want to try my hand at some basic 3d. Can someone point me in the right direction for learning?<br /> Thanks! &lt;3</p> https://www.lexaloffle.com/bbs/?tid=41582 https://www.lexaloffle.com/bbs/?tid=41582 Mon, 15 Feb 2021 16:30:59 UTC Using code from another source <p>Been getting interested in neural networks and machine learning lately and recently discovered this:<a href="https://github.com/vbrydik/pico-nn">https://github.com/vbrydik/pico-nn</a></p> <p>On the GitHub page it says to &quot;Just copy code from here and use it in pico-8 or other lua app.&quot;</p> <p>I know I can't just copy it into a p8 cart because the code it references isn't in my cart. </p> <p>What would be the correct way to implement this?</p> <p>Thanks :)</p> https://www.lexaloffle.com/bbs/?tid=37621 https://www.lexaloffle.com/bbs/?tid=37621 Mon, 27 Apr 2020 16:32:30 UTC Pico8 crashing(v0.2.0d) <p>Hey all, </p> <p>Been having this issue where P8 will suddenly close usually when I am editing code on Sublime Text. Seems to happen after about ten minutes or so. Anyone else experiencing this? </p> <p>On Windows 10.</p> <p>I'll update if I notice any patterns.</p> https://www.lexaloffle.com/bbs/?tid=37562 https://www.lexaloffle.com/bbs/?tid=37562 Fri, 24 Apr 2020 16:40:42 UTC Cls() and circfill <p>Stepped away from P8 for a while so I find myself a bit confused about the draw and update behavior.</p> <p>I am trying to make a game where pieces fall and I am using cicfill to create these.</p> <div> <div style="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 build_pill(x,y,color,y2,color2) radius=2.2 x2 = x - 3 pill={circfill(x,y,radius,color), circfill(x2,y2,radius,color2) } add(pills,pill) return pill 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 call it in update:</p> <div> <div style="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 _update() cls() build_pill(30,30,5,30,9) 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>The cls() function keeps erasing my object. However when I remove the cls() function the screen doesnt look right either.</p> <p>SO</p> <p>When is the right place to put the cls() and still be able to draw my shapes?</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=36998 https://www.lexaloffle.com/bbs/?tid=36998 Thu, 05 Mar 2020 03:15:17 UTC Change editor color? <p>Was looking through the api on <a href="https://neko250.github.io/pico8-api/">https://neko250.github.io/pico8-api/</a> and I noticed the command gui_theme. It seemed to be something I enter in the splore console but does't work. Is there a correct way to use this? Has it been deprecated?</p> https://www.lexaloffle.com/bbs/?tid=33251 https://www.lexaloffle.com/bbs/?tid=33251 Wed, 13 Feb 2019 01:14:50 UTC Table troubles :[(with code!) <p> <table><tr><td> <a href="/bbs/?pid=56637#p"> <img src="/bbs/thumbs/pico56636.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=56637#p"> Table troubles :[(with code!)</a><br><br> by <a href="/bbs/?uid=14814"> gigs</a> <br><br><br> <a href="/bbs/?pid=56637#p"> [Click to Play]</a> </td></tr></table> So this is a followup to a thread I made a few days ago about having trouble parsing a table that has multiples of the same piece.<br /> In this example I am trying to select either piece (which will be indicated by an arrow) but as you will see it only works for one.</p> https://www.lexaloffle.com/bbs/?tid=31874 https://www.lexaloffle.com/bbs/?tid=31874 Thu, 13 Sep 2018 22:29:41 UTC Random string from table <p>So apologies if this has been asked before, </p> <p>I am looking to build a sentence with random strings that will be stored in a table. </p> <p>For example:</p> <pre><span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222"> text = {} names = {&quot;a&quot;, &quot;b&quot;, &quot;c&quot;}</pre> <hr /> <pre><span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">name = names[rnd(2)] &lt;-- doesn't work :( foo = { str = &quot;Hi my name is&quot; .. name }</pre> <p>Everything I have found is in the Non P8 version of Lua.</p> https://www.lexaloffle.com/bbs/?tid=31505 https://www.lexaloffle.com/bbs/?tid=31505 Fri, 13 Jul 2018 12:56:38 UTC Embedding HTML player <p>Hi P8 community, </p> <p>I am looking to embed some of my games onto a portfolio site I built using Github pages and am not sure how to embed the player without just linking to it on a separate view.<br /> I am certain this can be done as I have seen games on Itch and the like.<br /> I'm sure its easy and I'm just forgetting some basic HTML thing.</p> <p>Anyone?</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=31395 https://www.lexaloffle.com/bbs/?tid=31395 Fri, 08 Jun 2018 18:16:12 UTC Sprite glitching? <p>Hey P8 fam, </p> <p>Got a weird thing happening with my game and am having trouble finding anything on this, What is happening is on my map editor I am seeing sprite formations that I did not put there and when I try to remove some of them I see a glitching effect on some of the sprites I did place intentionally when I run the game.<br /> Does that make sense? </p> <p>Does this have to do with the 128 sprite limit? Didn't think I hit it. </p> <p>Happy to answer any questions, thanks.</p> https://www.lexaloffle.com/bbs/?tid=30986 https://www.lexaloffle.com/bbs/?tid=30986 Thu, 22 Mar 2018 22:35:33 UTC Help! <p> <table><tr><td> <a href="/bbs/?pid=46337#p"> <img src="/bbs/thumbs/pico46336.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46337#p"> Help!</a><br><br> by <a href="/bbs/?uid=14814"> gigs</a> <br><br><br> <a href="/bbs/?pid=46337#p"> [Click to Play]</a> </td></tr></table> <br /> Hey all so I posted a cart so you can see what I am facing here:</p> <p>I have the town with buildings that have collision coded into them with the doors coded to take the player to another room which is admittedly hacked together.<br /> What happens is the player is then transported(sorta) to a new location - yet when I move him around in the 'new' zone there seems to be residual collision code which prevents total freedom of movement for the player.</p> <p>Any better ways to go about this? I want the player to enter the brown zone and be able to freely move around at will.</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=30266 https://www.lexaloffle.com/bbs/?tid=30266 Wed, 15 Nov 2017 16:12:58 UTC Entering rooms? <p>Hello Pico 8 fam, </p> <p>Been working on a game that is something of a Final Fantasy clone and I am trying to implement different rooms for the player to enter. I am stumped with how to get this going and was wondering if there were any good resources available for me to dig into. </p> <p>I need a blank slate each time I enter a room.</p> https://www.lexaloffle.com/bbs/?tid=30206 https://www.lexaloffle.com/bbs/?tid=30206 Tue, 07 Nov 2017 23:08:27 UTC (Not title yet) Cute girl fights zombies! <p> <table><tr><td> <a href="/bbs/?pid=43566#p"> <img src="/bbs/thumbs/pico43565.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43566#p"> (Not title yet) Cute girl fights zombies! 0.0.1</a><br><br> by <a href="/bbs/?uid=14814"> gigs</a> <br><br><br> <a href="/bbs/?pid=43566#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=29832 https://www.lexaloffle.com/bbs/?tid=29832 Wed, 23 Aug 2017 22:00:49 UTC Physics Systems? <p>Hey everyone,</p> <p>I recently purchased Pico-8 and am loving it. I am breezing through the few tutorials there are on the internet and am starting to wonder how many of you have implemented physics engines to handle things such as gravity and the like.<br /> I have been looking at other people's code and getting a bit of a clue but am feeling a little overwhelmed :&lt;.</p> <p>Any resources would be great as I want to learn how to do this for real so I can grow as a developer.</p> <p>Thanks!</p> <p>Edit: Just looking for something simple how when the player jumps, to have him come back down</p> https://www.lexaloffle.com/bbs/?tid=3998 https://www.lexaloffle.com/bbs/?tid=3998 Wed, 03 Aug 2016 16:38:54 UTC