![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
1) What are the dimensions of the board? 2)How do I know the starting position and shape of each block? By starting position, I do not mean position on the board, but the position in its own 4*4 realm. Each block can be 4*4, no more, so I have decided to store each block in its own array, until being placed. So, if I have the following empty space: ---- ---- ---- ---- How would *** * fit? ***- -*-- ---- ---- OR ---- ***- -*-- ---- And other possibilities exist as well. Does it matter? Is there a standard starting position? Is it different for each object? Also, how can I find the starting shapes for each object? Do they start as: *** * OR * ** * How can I find these bits of information out? Please do not respond with full-code examples, this is not what I am looking for. |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
2. I do not want to comment on your method for storing the tetrominoes (game pieces). There is no standard way to store the blocks as they descend, it basically depends only on how you want to do it in order to make it work. Whichever method you find easiest is the correct method. To find the starting shapes, and more information about Tetris in general, I recommend visiting Tetris - Wikipedia, the free encyclopedia. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|