Complete game with source: Tetris

Co2

Active member
Joined
May 29, 2003
Messages
34
Location
Universe 2.4.37
Hello,

Ive created a Tetris game using DirectX and VB.NET. At first, it was intented for our chat channel. Finally, I converted it in English and here it is.

Most comments are in French and most of the code is in English (dont ask me why). I know that some things could have been done differently and others could have been added. This is my first real VB.NET application and my first DirectX game.

Please read ReadMe.txt before doing anything.

Enjoy! :)

Download below
 
Last edited by a moderator:
You can upload files onto the forum server, theres a file attachment feature at the bottom of the New Thread/Post
 
Is it me, or is that ZIP corrupted? I couldnt open it, after multiple downloads.
 
Doh, I was thinking of making a tetris-like game myself (but with GDI+ since I dont know DirectX). Back to the drawing board...

Oh, btw, good stuff.
 
Originally posted by wyrd
Doh, I was thinking of making a tetris-like game myself (but with GDI+ since I dont know DirectX). Back to the drawing board...

Oh, btw, good stuff.
Why not continue it? It would be great to have both a DirectX and a GDI+ version of Tetris for people to learn from. :)
 
Originally posted by VolteFace
Why not continue it? It would be great to have both a DirectX and a GDI+ version of Tetris for people to learn from. :)

I suppose. I havent looked at his source code so it could still present a challenge and learning experience.
 
Others things

Here is what I might do if I have some spare time (which I dont) to enhance this game.

* Inputs: Using DirectInput instead of the keydown event of the form. One of my testers (actually they were 2) told me that he was often playing tetrinet and that keys were responding faster in that game. Using DirectInput might help.
* Rotation: Doing real rotation instead of squares translation. I tought I could use Direct3D for this but I wasnt in the mood to learn it right after DirectDraw.
* OO: Using multiple class like Block, Board, Game.
* Crypting scores: Preventing too smart kids from messing with me :)
* Themes: Adding the ability to theme the game (blocks and board) with a file structure using xml.
* Multiplayer: Using DirectPlay or a simple TCP protocol to allow multiplayer gaming.
 
Even if theyre both done in DirectX or GDI, why not create another? I thought the point of programming such as simple game (for Wyrd, from another topic) was to get some experience?

You *could* make up your own idea for a simple game. But, if you start with a well-established idea you can skip that step and get to the coding part. On a new game, just defining all the rules and options is a major piece. Theres nothing wrong with borrow from a solid idea to get your feet wet.

-Nerseus
 
I think you need a personal trainer, wyrd. Not to help you code but to push you into coding every day. Distractions seem to be more the rule than the exception :)

-nerseus
 
Updates

Here a try to upload the project on the forums.
It also contains some bug corrections and some translation that were missing in the previous version.
 

Attachments

Last edited by a moderator:
Back
Top