0 Members and 2 Guests are viewing this topic.
Looks nice. As for the blocks, the lighter ones could probably have a darker color or a lighter outline thing to the top/left.
Nice! It doesn't necessarily need the fast down button, as I normally don't use it.
i'll have a try on that button cause it's nice to have..i also have a problem with the turning of the blocks it seems. i thought i only had to transpose the matrix, but in fact, it doesn't work, cause you only have two positions then. how can i fix this?
and for the code, yeah it is to check if that blocks[][] (that's the matrix that includes the total field) is not 0, i've tried it with ~=0, but it didn't work properly, it wouldn't move anymore...
count = 0 for i=1,4 do if transpon[1][i]==0 then count = count + 1 end end if count==4 then table.remove(transpon[1]) table.insert(transpon,4,{0,0,0,0}) count = 0 end
I just solved the problem, it all works nice, i have add the marathon function: every 5 lines you go a level up, and you get a higher score when erasing multiple lines at once. I used 2*numberoflines if linescleared>1, so 1 line gives 1 point, 2 lines gives 3 points, 3 lines gives 7 points and so on...Oh, and that's really nice to know, it might be very handy to know, merci om 't met andere woorden te zeggen
table.remove(transpon[1]) table.insert(transpon,4,{0,0,0,0})
table.remove(transpon, 1) table.insert(transpon,4,{0,0,0,0})
gc:setColorRGB(R,G,B)gc:fillRect(x,y,10,10)gc:setColorRGB(R,G,B)gc:fillRect(x,y,10,10)gc:setColorRGB(R,G,B)gc:fillRect(x,y,10,10)
gc:drawImage(image,x,y)
Every 5 lines? I went up to level 20 and saw how fast it was. Are you sure 5 lines? :O Or maybe it should be like steps, where level 1 is # of lines, then level 2 is # of lines + 1, level 3 # +2 or something. Or else for some it might get too hard too fast...
Quote from: AzNg0d1030 on November 08, 2011, 09:32:58 pmEvery 5 lines? I went up to level 20 and saw how fast it was. Are you sure 5 lines? :O Or maybe it should be like steps, where level 1 is # of lines, then level 2 is # of lines + 1, level 3 # +2 or something. Or else for some it might get too hard too fast...are you being sarcastic or is it true that it goes quite fast?