Jump to content

Tetris Making blocks/ removing lines


matthike

Recommended Posts

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.