|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: Tetris program by beginner
Hey, I would love to take a look at your program. TETRIS I am a pretty experienced programmer with mode 13h for dos with c. So if that is the mode your working with then I could probably be some help. However if you are making the game for windows then I too am working on my own windows games and just started reading on direct X. As for the text to appear in graphics mode. You could either take full control of the keyboard (which i do) using bios or get the input using the hard to get perfect getc() and getch() functions. Then to make the text appear in graphics mode. Well there is some bios ASCII text bit-chars in which each character is 8 rows of 8bits or 8 bytes long. You read in each of the bits and then assign a color to each one and put them to the screen a pixel at a time when the bit = 1. When zero you skip that pixel. 00011000 00100100 00100100 00111100 --- EXAMPLE OF BIOS CHARACTERS---- 00100100 01000010 01000010 01000010 I'm sorry i don't have the hex address handy, but I can find it for you if you'd like. -----Original Message----- From: gameprogrammer-owner@gameprogrammer.com [mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of tushar gurjar Sent: Friday, January 21, 2000 1:10 PM To: gameprogrammer@gameprogrammer.com Subject: Hi guys, I am new to game programming but I have been trying my hand at game programming.Actually i have already completed the code.Guess which game am i talking about? yep "TETRIS" it is again. I know, u guys r real studs in programming(vc++,directX,open GL and what not!) and would definitely be mad at me for writing this crap but hey guys i can't help it.I need some help. I have written this game in 'c' with a dash of assembly thrown in.The game as such is working fine but there sure are some flaws in it.I was just wondering whether any one of you might be interested(at least curious) in having a look at it.I would like your opinions and suggestions to improve it(especially from the head of this community).The only reason i did'nt attach the exe file was that i did'nt want to fill your mail box with 110kb of junk.If u guys are interested, do mail me. I also have a problem. How do I make the text which the user types, to appear on screen in graphics mode(in C)? I have given it a good try but nothing seems to be working. It seems that to print in graphics mode it is necessary to get the data to be printed in string form so that outtextxy() function can be used. Whenever i try to print the letter which i typed,the ascii value gets printed.what's the solution? One last thing! Sorry to write such a @#@$#*( long letter . ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|