Log In  

@orangecode

Follow
Follow

coffee.
code.
sleep.

Cart [#34736#] | Code | 2017-01-02 | License: CC4-BY-NC-SA | Embed
5

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#34738 2017-01-02 11:25 ( Edited 2017-01-04 10:45)

Cart [#33644#] | Code | 2016-12-18 | License: CC4-BY-NC-SA | Embed
4

P#33645 2016-12-18 15:02 ( Edited 2016-12-20 22:38)

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?

sin( x ^ ( 1 / 3 ))

Cart [#33485#] | Code | 2016-12-14 | License: CC4-BY-NC-SA | Embed

P#33486 2016-12-14 10:16 ( Edited 2016-12-14 22:53)

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-08-24 04:14 | 0.072s | 4194k | Q:38