
-----------------------------------
rollerdude
Thu Oct 28, 2004 4:31 pm

Tetris
-----------------------------------
Ok
so here's my tetris code, so far, it's very basic and the peices still squash each other

tell me what you think

-----------------------------------
rollerdude
Thu Oct 28, 2004 4:32 pm

tetris
-----------------------------------
ok so, now that you tried, it, can you tell me how to make so the peices can't go off the screen
and how to make them not sqish each other?

-----------------------------------
Andy
Thu Oct 28, 2004 5:42 pm


-----------------------------------
make walls on all four sides... and set a statement where if u cant go past a wall...

here is one that i made a while back...
http://compsci.ca/v2/viewtopic.php?p=7751#7751

yea that wasnt too good... te best way to do it is treat it as a matrix and just keep on multiplying the matrix by some multiplier

-----------------------------------
rollerdude
Thu Oct 28, 2004 5:48 pm


-----------------------------------
thanx but, i'm using turing 3.1.1
so veiw.update and stuff like doesn't work

thanx anyway

-----------------------------------
Andy
Thu Oct 28, 2004 7:32 pm


-----------------------------------
haha, that wasnt an invitation to copy my code.. it was so u can see what i did and make your own

-----------------------------------
gigaman
Thu Oct 28, 2004 9:24 pm


-----------------------------------
I would reccomend that you use a random integer in an if statement so that each number calls a different piece. each piece a function

-----------------------------------
rollerdude
Fri Oct 29, 2004 12:35 pm

tetris
-----------------------------------

haha, that wasnt an invitation to copy my code.. it was so u can see what i did and make your own

either way, can't use Veiw.Update so i don't no what it does(nor key up arrow,ect.)

-----------------------------------
Tony
Fri Oct 29, 2004 4:42 pm

Re: tetris
-----------------------------------
[quote="rollerdude"
either way, can't use Veiw.Update[/quote]
View.Update updates the view... you'd think the function name would imply its purpose :? But that's just graphics stuff, don't worry about it.

-----------------------------------
coolmanjess
Thu Jun 02, 2005 10:58 am


-----------------------------------
hey rollerdude, what does the switch statement mean.....and im trying to figure out a way to stack them...i found out how to stop them at the wall n stuff...heres the code 

            if ord (ch) = 205 and row < wall (i used 300)
                    then
                row := row + 10
            elsif ord (ch) = 203 and row > 0 and row < 300
                    then
                row := row - 10

there ya go

-----------------------------------
wadeshaqdunk
Thu Jun 02, 2005 3:38 pm

C'Mon
-----------------------------------
/*
How about some user input???
*/
if hasch then
getch (ch)
if ch = chr (203) then
Pic.Rotate (Pic.FileNew ("block.bmp), 1, 1, 90)
elsif ch = chr (205) then
%Just rotate the block the other way
%You actually have to have

-----------------------------------
coolmanjess
Fri Jun 03, 2005 9:35 am


-----------------------------------
ya thats a pretty good idea too....alot easier definetly, but how would u get them to stack....like if one block is full then dont drop to bottom...but what would be the code....and for getting rid of the lines after their filled up....i have a couple of classes left before my isu is done and thats all i need to finish up

-----------------------------------
coolmanjess
Fri Jun 03, 2005 9:36 am


-----------------------------------
ya thats a pretty good idea too....alot easier definetly, but how would u get them to stack....like if one block is full then dont drop to bottom...but what would be the code....and for getting rid of the lines after their filled up....i have a couple of classes left before my isu is done and thats all i need to finish up

-----------------------------------
coolmanjess
Fri Jun 03, 2005 9:37 am


-----------------------------------
ya thats a pretty good idea too....alot easier definetly, but how would u get them to stack....like if one block is full then dont drop to bottom...but what would be the code....and for getting rid of the lines after their filled up....i have a couple of classes left before my isu is done and thats all i need to finish up

-----------------------------------
coolmanjess
Fri Jun 03, 2005 10:25 am


-----------------------------------
sorry about that, spam = accident

-----------------------------------
lzbravo
Fri Jun 10, 2005 7:02 pm


-----------------------------------
the game isn't bad but you should put instructions and also slow the gmae down put more detail
