Log In  

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)

The line particle effect is very cool!
For the 8x8 sprite problem
1) you could keep the 8x8 sprites and have the play field auto scroll. Maybe add a minimap on the side with 1x1 blocks.
2) if you used 4x4 for each block then you could fit 4 blocks in a single sprite and still use the sprite flags for collision.

P#34753 2017-01-02 13:49 ( Edited 2017-01-02 18:49)

hmm I never considered auto scroll that sounds like a cool way to do it

P#34804 2017-01-02 22:20 ( Edited 2017-01-03 03:20)

I actually managed to use 6x6 sprites for display along with dedicating a 10x20 sprite area (with tags) for internal calculations. Here's the end result.

P#34901 2017-01-04 05:45 ( Edited 2017-01-04 10:45)

[Please log in to post a comment]