Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 5th, 2006, 10:56 PM   #1
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Making tetris

I'm thinking of making a tetris game for c++ or java. I'm just wondering if you guys think that it would be hard make? Have any of you ever make a tetris game before?
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote
Old May 5th, 2006, 11:21 PM   #2
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 340
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
how much experiance do you have with programming?

do you want the game to be in ASCII or graphics?

code it your self, use libs, script through a program....
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old May 6th, 2006, 3:35 AM   #3
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Tetris sucks, so I haven't made it. I think it might be challenging if you want to make it nice, but not too hard.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old May 6th, 2006, 9:24 AM   #4
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
I made a testris game a few years ago. The code was really crappy and it used an outdated graphics library.
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote
Old May 6th, 2006, 11:27 AM   #5
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 873
Rep Power: 4 The Dark is on a distinguished road
Go for it, it shouldn't be too hard.

I made a tetris game for DOS in 1989 (just found the source again). It even ran inside my friends TSR popup program "popdos", so you could hotkey into tetris at the touch of a button (and hide it again when the boss comes).

You could specify the random seed when you started the game, so we would play the same game against each other to see who would get the highest score. Wasted far too much time on playing it.
The Dark is offline   Reply With Quote
Old May 8th, 2006, 1:12 AM   #6
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Quote:
Originally Posted by The Dark
Go for it, it shouldn't be too hard.

I made a tetris game for DOS in 1989 (just found the source again). It even ran inside my friends TSR popup program "popdos", so you could hotkey into tetris at the touch of a button (and hide it again when the boss comes).

You could specify the random seed when you started the game, so we would play the same game against each other to see who would get the highest score. Wasted far too much time on playing it.
I'm not too familiar with how games were made back then. Did you use c to make the game?
__________________
Death smiles at us all. All a man can do is smile back.
Eric the Red is offline   Reply With Quote
Old May 8th, 2006, 1:14 AM   #7
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 340
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
im guessing BASIC
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old May 8th, 2006, 1:15 AM   #8
brownhead
Programmer
 
Join Date: Mar 2006
Location: California
Posts: 37
Rep Power: 0 brownhead is on a distinguished road
Send a message via AIM to brownhead Send a message via MSN to brownhead
I wonder if you could make a tetris game in Batch... certainly be tricky :\
brownhead is offline   Reply With Quote
Old May 8th, 2006, 3:32 AM   #9
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 873
Rep Power: 4 The Dark is on a distinguished road
Yes it was C, 890 lines of code (I just looked), quite a lot of which was in #ifdef's due to handling two different environments (normal DOS and the PopDOS popup program).
Embarrasingly enough, there are only 6 comments in the whole 890 lines, only 3 of which were not pointlessly saying what the next line of code did. Hey, I was young, there would be at least 8 comments if I did it now :p

As a background, PopDOS was a program a friend of mine wrote to allow you to pop up little applets (such as an editor, calculator, or tetris) when you were still in another program under MS-DOS (or PC-DOS or whatever). "Sidekick" was a better known commercial program that did similar things. This was back before Windows 3.0 hit the shelves, so mostly you only did one thing at a time on your computer. So I tied an onion to my belt, which was the style at the time...
The Dark is offline   Reply With Quote
Old May 9th, 2006, 11:22 PM   #10
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 378
Rep Power: 3 King is on a distinguished road
I did one in Win32, it wasn't too hard. it might be easier to do in java tho.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC