orangecode [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=17243 Tetris <p> <table><tr><td> <a href="/bbs/?pid=34738#p"> <img src="/bbs/thumbs/pico34736.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=34738#p"> Tetris 2</a><br><br> by <a href="/bbs/?uid=17243"> orangecode</a> <br><br><br> <a href="/bbs/?pid=34738#p"> [Click to Play]</a> </td></tr></table> <br /> So I made a tetris clone a little while back, I used the 8x8 spirtes as whole blocks. Which worked well with the flag collision thing, but it couldn't fit on the screen, so I'm back with 5x5 blocks and as far as I'm aware there's no way to use the map + flags for sprites under 8x8 besides maybe a virtual screen that your code scales down. I also started off with all the blocks as ints in an array[ 220 ], but these 1 based arrays are throwing me off, I eventually just scrapped it because the code was a mess and currently have an object { x, y, type } for each block, which really isn't efficient but w/e. Feedback/Criticism welcome, new to Lua and Pico and any suggestions on how you guys tackle collision under 8x8 would be stellar.</p> https://www.lexaloffle.com/bbs/?tid=28410 https://www.lexaloffle.com/bbs/?tid=28410 Mon, 02 Jan 2017 11:25:07 UTC Tetris <p> <table><tr><td> <a href="/bbs/?pid=33645#p"> <img src="/bbs/thumbs/pico33644.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=33645#p"> Tetris</a><br><br> by <a href="/bbs/?uid=17243"> orangecode</a> <br><br><br> <a href="/bbs/?pid=33645#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=28240 https://www.lexaloffle.com/bbs/?tid=28240 Sun, 18 Dec 2016 15:02:23 UTC Help with Power Function <p>Hello, I'm trying to use a function that uses a power that is less than 1, and for some reason pico will always evaluate it to 0. Is this just a limitation of pico? and any ideas on alternatives to achieve a similar result?</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> sin( x ^ ( 1 / 3 )) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <img style="margin-bottom:16px" border=0 src="http://puu.sh/sPhBH.png" alt="" /> <p> <table><tr><td> <a href="/bbs/?pid=33486#p"> <img src="/bbs/thumbs/pico33485.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=33486#p"> issue with fractional powers in lua 1</a><br><br> by <a href="/bbs/?uid=17243"> orangecode</a> <br><br><br> <a href="/bbs/?pid=33486#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=28216 https://www.lexaloffle.com/bbs/?tid=28216 Wed, 14 Dec 2016 10:16:04 UTC