02-13-2017 04:40 PM
Hello.
I try to make Tetris in LabView. I have problem with stop blocks on the last field and move blocks left and right.
Does anyone have an idea how to solve it?
02-13-2017 06:41 PM
Well, first look at the all the posts here.
Now you need some kind of collision and boundary detection. You'll figure it out. 😄
02-13-2017 09:58 PM
Another tip, make it such that the occupied elements are FALSE and the available elements TRUE (you can change the T/F colors to get the desired visual). This way you can deal with out of bounds more easily, because indexing an element outside the valid range returns false and indicats that you can't go there.
02-14-2017 07:36 AM
Crosspost where I linked to the exact same thread.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord