February 05, 2018

Tetris Game : Turbo C++



   Tetris is a tile-matching puzzle  game, originally designed and programmed by Russian game designer Alexey Pajitnov in 1984—the product of Alexey’s computer programming experience and his love of puzzles. 


The goal of Tetris is to score as many points as possible by clearing horizontal lines of Blocks. The player must rotate, move, and drop the falling Tetriminos (Tetriminos are game pieces shaped like tetrominoes, geometric shapes composed of four square blocks each) inside the Matrix (playing field). Lines are cleared when they are filled with Blocks and have no empty spaces.  If the Blocks land above the top of the playing field, the game is over.  It has been developed using the Turbo C++ 3.0 IDE. It uses BGI Graphics to render all the graphics.


Screenshots

Tetris Game - Starting Screen

Tetris Game - Help

Tetris Game - Main Menu

Tetris Game - Playing Tetris Game

Tetris Game - Playing Tetris Game

Tetris Game - Playing Tetris Game

Tetris Game - Game Over


Source Code



Functionality


  • To move the Tetriminos left press Left arrow key.
  • To move the Tetriminos right press Right arrow key.
  • To rotate the Tetriminos press Up arrow key.
  • To increase the speed press Down arrow key.
  • To pause sound press S key.
  • To pause the game press Space bar key.
  • To return from game press Escape key.


Download



Click here to view and download the source code of Tetris Game (82 KB).

Click here to download the executable file of Tetris Game (76 KB) (Please note that it is a 16-bit executable and will not run on 64-bit systems).




4 comments:

  1. Sir good coding iam bca students.

    ReplyDelete
  2. C++ Shortcuts is an upgraded and optimized version of famous DOS-based Borland Turbo C++ integrated development environment that can now be run on modern versions of Windows such as Vista, 7, 8 and 10

    ReplyDelete
  3. I really enjoyed reading this post, I always appreciate topics like this being discussed to us. Information very nice. I will follow post Thanks for sharing.
    Krunker mods|Google just published 25 million free datasets| gamesweekly

    ReplyDelete
  4. #include this is the only problem how can I fit it

    ReplyDelete