Tetris game by Igor Pro
Thu, 08/26/2021 - 05:43 am
A Tetris game by Igor Pro. All basic functions of a tetris game are realized such as automatic level upgrade.
Now you can have a try and see how many points can you get?
I can get about 7000:)
Some things you my be intersted at:
1 The tetris panel and blocks are simulated with a matrix and a curve.
2 The shape and movement of blocks are simulated both by an extra color wave and customolized markers.
3 Igor behaves really amazing: the graph window can always immediately respond to background data changes( the matrix size is 10x20,the curve is also 200 length) without any delay.
A small problem：
If I play a action sound(such as the sound when you clear one line of tetris), the background music have to be stopped. The PlaySound command can only play one sound at one time. Currently I dont find any way to work around this problem.
Current Project Release
Igor Pro 9
Igor XOP Toolkit
Igor NIDAQ Tools MX