Monday 28 March 2016

Tetris Game

Tetris Ggame Projects in Opengl Computer Graphics

There are many computer graphics games projects in the opengl. We have discussed many of them like ludo, snake xenia, mancala etc. Here are we have a new game projects in computer graphics. You may remember the childhood video game where we play the game of tetris. Here we are going ti implements the game of tetris in Opengl computer graphics.

The project is some what complex but not long. It has fewer lines of code. Logic is to have the function that define a random change of blocks or the shapes when key is press . With key press the angles are changes and hence the shape of the blocks are determines in each key press. The change is also selective and act on chosen shapes, means a shape of of long line may have four block in horizontal and vertices and no other shapes. The color is also randomly selected while for shapes changes it remain same. 



Keyboard Interaction -

  • Up arrow key - changes the shape in positive direction of angle
  • Down arrow key -  changes the shape in negative direction of angle
  • Right arrow key - move the blocks to right
  • Left arrow key - move the blocks to right
  • Esc - Closed the program

The important feature that this project lac is the disappearance of blocks as the line get filled. While timers and scores can be added in future to this projects along with sounds in the Opengl computer graphics.

Download Program Source Code here
Download Report here

1 comment:

  1. You have a genuine capacity for composing exceptional substance. I like how you think and the way you speak to your perspectives in this article. I concur with your state of mind. Much obliged to you for sharing. play tetris unblocked online

    ReplyDelete