Co2 Posted July 3, 2003 Posted July 3, 2003 (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 July 4, 2003 by Robby Quote
*Experts* Nerseus Posted July 3, 2003 *Experts* Posted July 3, 2003 Very nice. My favorite feature - Size (I like 200% - I'm old). -nerseus Quote "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
AndreRyan Posted July 4, 2003 Posted July 4, 2003 You can upload files onto the forum server, theres a file attachment feature at the bottom of the New Thread/Post Quote .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?
Co2 Posted July 4, 2003 Author Posted July 4, 2003 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. Quote
Moderators Robby Posted July 4, 2003 Moderators Posted July 4, 2003 I took the liberty of uploading it here...tetris.zip Quote Visit...Bassic Software
*Experts* Volte Posted July 4, 2003 *Experts* Posted July 4, 2003 Is it me, or is that ZIP corrupted? I couldn't open it, after multiple downloads. Quote
Co2 Posted July 4, 2003 Author Posted July 4, 2003 What have you done Robby ? Here is the original link for download if you have problems with robby's file. Quote
wyrd Posted July 4, 2003 Posted July 4, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
Moderators Robby Posted July 4, 2003 Moderators Posted July 4, 2003 I think it messed up during the upload. Quote Visit...Bassic Software
*Experts* Volte Posted July 4, 2003 *Experts* Posted July 4, 2003 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. :) Quote
wyrd Posted July 4, 2003 Posted July 4, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
Co2 Posted July 8, 2003 Author Posted July 8, 2003 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. Quote
*Experts* Nerseus Posted July 8, 2003 *Experts* Posted July 8, 2003 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 Quote "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
wyrd Posted July 8, 2003 Posted July 8, 2003 You're right as usual. :P Quote Gamer extraordinaire. Programmer wannabe.
*Experts* Nerseus Posted July 8, 2003 *Experts* Posted July 8, 2003 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 Quote "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
Co2 Posted July 10, 2003 Author Posted July 10, 2003 I found a little bug in the game and a missing translation. I've updated my link to reflect the changes I have made. Quote
Co2 Posted January 10, 2004 Author Posted January 10, 2004 (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 May 10, 2007 by PlausiblyDamp Quote
igotjunk Posted January 10, 2004 Posted January 10, 2004 WELL DONE All good for some light game play entertainment ... my day feels somewhat better. Quote
Fabian_Russ Posted November 23, 2009 Posted November 23, 2009 (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 November 23, 2009 by Fabian_Russ Quote
Administrators PlausiblyDamp Posted November 23, 2009 Administrators Posted November 23, 2009 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Fabian_Russ Posted August 25, 2010 Posted August 25, 2010 Re: WELL DONE lol yeah, I forgot about posting on this thread, the issue probably was 64-bit, since DirectX will not compile under AnyCPU/64-bit. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.