Hobbies And Interests

How to Program a Tetris Game

Since Alexey Pajitnov completed the first version of "Tetris" while living in the Soviet Union in 1984, numerous ports and imitations of his puzzle game classic have cropped up. Today people play "Tetris" on everything from computers and video game consoles to calculators and cellphones. Creating a "Tetris" clone can prove a rewarding project for an aspiring computer programmer. To make your own "Tetris" game, you will have to make or gather "Tetris" sprites, learn to program (if you haven't already done so) and sit down and code the game.

Instructions

    • 1

      Create "Tetris" sprites using Microsoft Paint or other graphics-editing software. You can also rip "Tetris" sprites from console versions of the game using emulation software if you own the original cartridges. You will need to create seven distinct blocks at minimum for your "Tetris" game: I, J, L, O, S, T and Z.

    • 2

      Learn a programming language such as C++ Basic or familiarize yourself with software such as Flash if you have not already done so. If you find yourself in a hurry to learn programming, consult books such as Stephen Davis's "C++ for Dummies" and Jerry Lee Ford's "Programming for the Absolute Beginner." "How to Cheat in Adobe Flash CS5: The Art of Design and Animation" by Chris Georgenes teaches the basics of using Adobe's Flash CS5 in a fun and easy-to-understand fashion.

    • 3

      Use the language or software of your choice to code your "Tetris" clone. In the course of doing so, consult a web tutorial that offers information on creating your own "Tetris" clone. This allows you to get started on your game as quickly as possible without having to figure out aspects of "Tetris" programming yourself.


https://www.htfbw.com © Hobbies And Interests