Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hello,

 

I've 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 (don't 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

Edited by Robby
  • *Experts*
Posted

Very nice. My favorite feature - Size (I like 200% - I'm old).

 

-nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted
You can upload files onto the forum server, theres a file attachment feature at the bottom of the New Thread/Post
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Posted
You can upload files onto the forum server, theres a file attachment feature at the bottom of the New Thread/Post

 

I tried but it wasn't working.

Posted

Doh, I was thinking of making a tetris-like game myself (but with GDI+ since I don't know DirectX). Back to the drawing board...

 

Oh, btw, good stuff.

Gamer extraordinaire. Programmer wannabe.
  • *Experts*
Posted
Doh, I was thinking of making a tetris-like game myself (but with GDI+ since I don't 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. :)
Posted
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 haven't looked at his source code so it could still present a challenge and learning experience.

Gamer extraordinaire. Programmer wannabe.
Posted

Others things

 

Here is what I might do if I have some spare time (which I don't) 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 wasn't 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.

  • *Experts*
Posted

Even if they're 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. There's nothing wrong with borrow from a solid idea to get your feet wet.

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • 5 months later...
Posted (edited)

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.

tetris.zip

Edited by PlausiblyDamp
  • 5 years later...
Posted (edited)

Re: WELL DONE

 

Think you could whip up a VB 2008 version of this?

2008 does not like this at all.

 

Oh wow.. This is almost the year 2010, I doubt this comment will ever be seen. O.o... I guess that means nobody is looking...

 

*picks nose*

Edited by Fabian_Russ
  • Administrators
Posted

Re: WELL DONE

 

Bit of a grave dig but...

 

You might get that error if you are running a 64bit os and the configuration is set to AnyCpu - you might want to try an x86 build instead. Just make sure you copy the .bmp files to the same folder as the executable and it should work fine.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...