Computer Science Canada Tetris |
Author: | richcash [ Mon Jul 10, 2006 10:53 pm ] |
Post subject: | Tetris |
This is a basic tetris game. It's more difficult to make than it seems. The code is not 100% neat and proceduralized, but I tried to make it readable. Code : This code has been updated and new version can be found lower on the page. I guess I should comment more! The shape array contains data for the 7 possible starting squares that can appear at the top of the screeen (obviously only four at a time to make a piece). The piece array contains data for the 7 possible pieces that can fall (and later uses the shape array to construct the tetris pieces). Further explanation can be given if requested. |
Author: | richcash [ Mon Jul 10, 2006 11:11 pm ] |
Post subject: | |
I almost forgot! spacebar to rotate (clockwise) arrow keys to move (left and right) |
Author: | NikG [ Tue Jul 11, 2006 12:33 am ] |
Post subject: | |
Very impressive! Some suggestions: -Different colors for the different types of blocks -A block drop button (or a button to make the block drop faster) -Perhaps a two-player mode? I don't have the time to look at your code right now, but I'll comment further when I do. +25 bits |
Author: | richcash [ Tue Jul 11, 2006 9:10 pm ] |
Post subject: | |
Thanks for the feedback! I'll implement some of your suggestions soon once I finalize it (also adding a timer and levels, some day, lol) Any comments or suggestions are appreciated! |
Author: | Mr. T [ Wed Jul 12, 2006 10:12 pm ] |
Post subject: | Alex's Opinion |
It shouldn't be too difficult to implement levels because all this entails is an increase in the speed of the falling blocks. |
Author: | MysticVegeta [ Thu Jul 13, 2006 7:14 pm ] |
Post subject: | |
Nice game, I liked playing it. A couple of things though, perhaps making the motion smoother might help. Definitely a button to make them go down faster. (Hopefully Down arrow) so we dont have to wait for it to come down... else, its pretty good, I like it. |
Author: | richcash [ Tue Jul 25, 2006 8:44 pm ] | ||
Post subject: | |||
I finally got around to updating the code, I have been busy doing other advanced topics of programming which I am still not finished. This version is a LOT more fun to play. I implented most things that were advised.
I didn't want to do multiple levels because then it gives the game a glitch that every Tetris game ever made has (although some claim it's not a glitch). Eventually, in any game of tetris, the pieces fall so fast that you can not move it over to the corner. Holding the arrow key left will only allow it to go 2 or 3 spaces left because it's moving so fast downward. This means eventually on a really fast level you can not make new lines becuase you can't fill in boxes on the side. The game becomes center-concentrated. And, basically, that's Tetris, the only non-downloadable version on compsci.ca! |
Author: | pj_ladd12 [ Wed Aug 02, 2006 11:55 am ] |
Post subject: | |
Awesome job man, love the graphics |
Author: | xtremehacker [ Thu Sep 07, 2006 6:05 pm ] |
Post subject: | |
This game is awesome i really like it man good work. |
Author: | Foundation [ Mon Sep 18, 2006 8:16 pm ] |
Post subject: | |
Wow, that's great. I understand about the glitch you are talking about. That's a funny glitch. I think that all level games have glitches like that. ex. too many enemies too fast, not enough bullets shooting out even at the fastest rate and continually. Like Tank. |
Author: | War_Caymore [ Fri Sep 22, 2006 11:35 am ] |
Post subject: | |
Omigod it's tetris! i loved playing it. i've read the entire code and realized some of the mistakes i've been making in mine (not that i'm making a tetris game, jsut some other things taht jsut so happen to use parts of your code). Thanx a bunch for making a kewl game and i would give you buts but i got none to give out. |
Author: | jr.ranger.33 [ Tue Oct 17, 2006 9:50 am ] |
Post subject: | Color Probs |
Great game, I play during computer class all the time. But one problem i have with it is the black shapes. I can't tell if they are shapes or blank spaces. Maybe you can change the color of the black shape. |
Author: | Silent Avenger [ Tue Oct 17, 2006 6:05 pm ] |
Post subject: | |
Very nice game. I played it today in compsci when I finished my project early. ![]() |
Author: | Zacebdal [ Tue Oct 17, 2006 9:20 pm ] |
Post subject: | Nice Work |
Congrats, you fooled me into thinking it was the real game. yeh pretty good stuff but, as ive noticed other people aree with me, the black shapes can be confusing at times. thats all the 'contructive' criticism i can offer at the time. |