03-24-2013 03:41 PM
I've built a LV Tetris using LVOOP.
It uses 2D array of color box as the main GUI.
It has most of the normal functions that you would find in a normal Tetris.
Check it out and please comment.
03-24-2013 05:11 PM
Really good, Appreciate your work. If you can hide the "milliseconds to wait" control and change/hide the window title bar it would be more attractive.
Do you have the code uploaded in the Developer community? If you plan to do it please post for previous versions also.
Good luck
03-24-2013 06:32 PM - edited 03-24-2013 06:34 PM
Nice.
For me the only real problem is that you used Pachelbel's canon as the music (which is a great piece, and the topic of a fun stand up piece), when proper Tetris music should be either Koberniki, Bach's minuet or the third one.
http://www.youtube.com/watch?v=78FJwbHYYxc
http://www.youtube.com/watch?v=NmCCQxVBfyM
03-24-2013 10:17 PM
nice work ! how was the experience in using OOP over the non-OOP way? Each 4-cell block is an object inherited from an abstract block class? Just curious as to how you designed it.
03-24-2013 11:59 PM
Here's the Project file.
I treated each brick as 2D 4x4 boolean array, not as indivisual object.
Although it would have been nice to treat each brick as an object, but I didn't do it.
It would have made parts of the code simplier, but it would also mean that I have to deal with a lot more classis.
So instead, I went on a design route where I kept most of things that should be object as object (ie. brick and playfield).
And all other details are added on as non-objects.
The guts of the objects are messy and not documented at all.
So please review the code with extreme causion (you may get very confused.)
The tricky part is to keep track of the color of each brick.
I added this feature as an after thought, the original design was just to use 2D boolean array (colorless, only T/F) as the playfield.
So the color portion of the code is a mess.
03-25-2013 06:54 AM
Yeah! Didn't think of that! Thanks a lot!
I'll include some cheesy MIDI Tetris classis backgroud music for the next build.
03-25-2013 09:38 PM
Actor framework may be a good candidate for the next round of Tetris.