http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

horray I did it



I was working through the open gl tutorial that I've mentioned earlier.  Got it in and only had 25 errors(all spelly i'm afraid).  Any way I've got a window or fullscreen window working.{nothing in it yet though} The scarry thing is I understand most of it.
 
now to place a geometric shape in it, well that's for later.
 
 
as for tetris rotations, back on the apple IIe I made a display grid and an alter grid simmerler to this.
 
=======  =======
|z|z| |   | | | |
=======   =======
| |z| |   | | | |
=======   =======
| |z| |   | | | |
=======   =======
Display   alter
 
to rotate right(clockwise) I read from bottom to top starting on the right and wrote left to wright starting at the top
 
=======     =======       =======   =======
|z|z| |     | | |z|       |3|6|9|   |1|2|3|
=======     =======       =======   =======   // copied form num to same num
| |z| |     |z|z|z|       |2|5|8|   |4|5|6|
=======     =======       =======   =======
| |z| |     | | | |       |1|4|7|   |7|8|9|
=======     =======       =======   =======
Display     alter         Display   alter
 
I then simply copied the alter back to display.  To rotate left(counterclockwise) I read from top to bottum starting on the left and wrote the same as above
 
=======     =======       =======   =======
| | |X|     |X|X| |       |7|4|1|   |1|2|3|
=======     =======       =======   =======  // copied from # to the same #
|X|X|X|     | |X| |       |8|5|2|   |4|5|6|
=======     =======       =======   =======
| | | |     | |X| |       |9|6|3|   |7|8|9|
=======     =======       =======   =======
Display     alter         Display   alter
 
then copied back to display.  grant this was a while back and it took alot of proctime then to especialy in basic but it work.
 
you might like to waite and see if osmeone comes up with something better, I'm just getting back into this myself.
 
Have fun and enjoy
 
Derold Clifford
 
 
{sigh} now what did I say about spelling