Log In  
Follow
orangecode

coffee.
code.
sleep.

[ :: Read More :: ]

Cart #34736 | 2017-01-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
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)

[ :: Read More :: ]

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

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

[ :: Read More :: ]

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 ))


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

Follow Lexaloffle:          
Generated 2024-03-29 06:26:41 | 0.069s | Q:14