help for tetris plz
Author |
Message |
newatthis
|
Posted: Tue Jan 16, 2007 9:42 pm Post subject: help for tetris plz |
|
|
hey there, i took a computer science course at my school and i kind of regret it, anyways the final project is to make a game and i'm pretty retarded for making trying to make a game like tetris, but i did. I'm able to get my shapes to move, but i'm not 2 concerned with rotation at the minute. Right now i'm trying to do collision detections and stack the blocks. All i've really done is design my blocks and made them fall. I've tried to use a 2-d array (boolean type) and store the value at false. I dont really know how to correspond my playing grid with this array. It would be great if anyone could tell me how to correspond the array with my playing grid. Here is what i've done so far, the programming is pretty bad and messy. Also if there is another easier method to this, i'd be glad to hear it thnx
Description: |
|
Download |
Filename: |
Tetris.t |
Filesize: |
8.99 KB |
Downloaded: |
103 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
zedx_26
|
Posted: Sat Jan 20, 2007 10:54 pm Post subject: Re: help for tetris plz |
|
|
Firs I thnk you should test for colision before thinking about rotating it. Check if The blocks do not pass thorugh each other and do not exit the screen
|
|
|
|
|
|
agnivohneb
|
|
|
|
|
fishtastic
|
Posted: Thu Mar 22, 2007 3:30 pm Post subject: RE:help for tetris plz |
|
|
i am working on my tetris.
i use 1-d array for blocks
|
|
|
|
|
|
fishtastic
|
Posted: Fri Mar 23, 2007 9:13 pm Post subject: RE:help for tetris plz |
|
|
you tetris is too long. use 2d array will be helpful.
btw, mine is working perfectly and it's less than 300 lines .now i'm trying to make is shorter.
|
|
|
|
|
|
|
|