pistacchio [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10988 tako80 Fantasy Console <p>Hi to all!<br /> I've been in love with Pico8 and the whole idea of fantasy consoles for over a year now.</p> <p>Today I'd like to introduce my take at fantasy console: tako80</p> <p>I've been working on it for months. I just launched the site at <a href="http://tako80.net">http://tako80.net</a> where you can read about it and find the documentation, if you happen to be interested!</p> <p>In tako80 the coding is done in Javascript and its carts run on the web. I guess it might be all a bit rough at the moment (I just finished setting up the forum but I haven't tested it thoroughly, yet! :)</p> <p>To promote tako80, I launched the first TakoJam. You can read about it here <a href="http://tako80.net/takojam">http://tako80.net/takojam</a>.</p> <p>The first prize is $100. I will eventually reward a second and a third prize of $50 and $20.</p> <p>If you are interested, just drop me a line! Thanks :)</p> https://www.lexaloffle.com/bbs/?tid=29521 https://www.lexaloffle.com/bbs/?tid=29521 Tue, 20 Jun 2017 13:14:36 UTC sin() cos() and atan2() <p>Since PICO-8's sin(), cos() and atan2() are not the standard functions, how to implement them in another language? Some pseudocode would be ok, I'm aiming javascript by the way.</p> <p>I looked into PicoLove's code as an example, but the results are different. For example in PICO-8:</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> print(sin(0)) -- 0 print(sin(0.5)) -- 0 print(sin(0.25)) -- -1 print(sin(-3)) -- 0 print(sin(-0.45)) -- 0.309 print(sin(78.4)) -- 0.5877 </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 PicoLove code remaps sin() to:</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> sin = function(x) return math.sin(-(x or 0)*(math.pi*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>that in javascript is:</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> window.sinp8 = function (x) { return Math.sin(-(x || 0) * (Math.PI * 2)); }; </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Now, the results are very different:</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> console.log(sinp8(0)); // -0 console.log(sinp8(0.5)); // -1.2246467991473532e-16 console.log(sinp8(0.25)); // -1 console.log(sinp8(-3)); // -7.347880794884119e-16 console.log(sinp8(-0.45)); // 0.3090169943749475 console.log(sinp8(78.4)); // 0.5877852522924427 </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Can you provide me with some working pseudocode for these three functions? Thanks</p> https://www.lexaloffle.com/bbs/?tid=2538 https://www.lexaloffle.com/bbs/?tid=2538 Thu, 01 Oct 2015 06:23:00 UTC pal(c0, c1, 0) VS pal(c0, c1, 1) <p>Can anybody explain to me the difference between &quot;change color at draw time&quot; and &quot;change color at display time&quot;? If I, for example, set red to green and than I draw a sprite, its reds are drawn as greens. If I set it to change at display time, the effect is the same. What's the difference between the two modes?<br /> Thanks</p> https://www.lexaloffle.com/bbs/?tid=2535 https://www.lexaloffle.com/bbs/?tid=2535 Wed, 30 Sep 2015 06:44:59 UTC Old school plasma effect <p>Hi,<br /> I'm trying to port to PICO-8 a version of the classic old-school plasma effect I have done in javascript.</p> <p><a href="http://pastebin.com/7A2NEZ6r">This is the code so far</a></p> <p>I have the major problem that due to pico limitations, all those sin, cos and sqrt just freeze it. If you don't try to fill up the whole screen (for example, </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> for y=1,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>instead of </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> for y=1,127 </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>it mostly works.</p> <p>Any idea on how to improve in this?<br /> Thanks</p> https://www.lexaloffle.com/bbs/?tid=2505 https://www.lexaloffle.com/bbs/?tid=2505 Tue, 22 Sep 2015 14:49:28 UTC Token limit too low? <p>Hi,<br /> I got Pico8 today, I've just started toying around with it briefly and I'm having fun exploring other people's games and reading the forum. Incredible software!</p> <p>One thing that I've noticed is that there are already various projects stuck because they hit the token limit (eg <a href="https://www.lexaloffle.com/bbs/?tid=2319">Underworld Siege</a> or <a href="https://www.lexaloffle.com/bbs/?tid=2424">Kingslayer</a>). Now, as a very young console not yet out of the alpha phase, I believe that no one has spent months on a single game and that a lot of things are still to be discovered and boundaries are to be pushed. Yet people hitting the (arbitrary) token limit is not very promising. For example, one of the two games quoted above is a LudumDare game. If someone can reach this limit in a one-week game competition, how can a project grow to a polished, full-featured game? I'm scared that this would prevent some kind of games (RPGs or adventures, for example) to be developed for Pic8, effectively making it less flexible that it could be.</p> https://www.lexaloffle.com/bbs/?tid=2486 https://www.lexaloffle.com/bbs/?tid=2486 Fri, 18 Sep 2015 15:31:09 UTC