matthike Posted November 27, 2008 Report Share Posted November 27, 2008 Hi I'm "trying" to make my own Tetris in labview but I've got some problems... the first one is: making the blocks my teacher told me I had to use 1 block (square) to make the 6 blocks necessary So I need to put that square block in a matrix (min 2 rows and min 2 cols) With numbers it is easy but how to do it with images? (I guess I need to upload that square block from and image file) because images are 2D-arrays themselfs ... which means I'll have an 4D array :s so well ... I'm stuck there :s another problem I have is that I don't manage to remove completed lines: I tried the delete array function but this one just puts a 0 instead of a 1 (so e.g : one full line is : 1 1 1 1 1 1 1 and becomes a 0 0 0 0 0 0 0) but I want to lower the rows... I don't know how to do that : probably with replace array subset but then again how ? :s plz help me with this thx a lot Quote Link to comment
jcarmody Posted November 27, 2008 Report Share Posted November 27, 2008 QUOTE (matthike @ Nov 26 2008, 12:32 PM) HiI'm "trying" to make my own Tetris in labview but I've got some problems... This has been done before. http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=yrO&q=site%3Aforums.ni.com+tetris&btnG=Search' target="_blank">Search the LabVIEW forum and you'll find a plethora of information. Jim Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.