Im making a tetris program. The only other program I've made was a simple "rock, paper, scissors" program (besides "hello world", farenheit to celsius converters, etc, and other 10-20 liners). Im teaching myself and I just finished a chapter (only 4 or 5 into the book) on arrays, and I wanted to do something to use things I learned, or there's no way Id remember them. After I got going (with tetris) I realized I probably wasn't ready for tetris yet. But I did it anyway, cause I wanted to. Had to look a bunch of stuff up though. The only thing I don't fully understand is getting the arrow key presses, but I understood enough to use it (with only a little copying and pasting ). Anyway I got the basic program working (it even seems to have somehow gotten the natural tendency to give you the worst block at the worst time that all tetris programs have )
Anyway heres my problem now. I want to make the prog. update, every, say, .2 seconds. I can do that, but when I use getch, it waits for input, making the timer pointless soooo... thats my problem. I don't know if you can make it do two things at once, or what, but im hoping you can tell me.
If you look at the code, remember, I'm almost an absolute begginner, so I expect its probably all done terribly.(but it does work)
If you have any suggestions, suggest away. (try to be somewhat tactful )
In fact, any advise would be helpful as I have alot to learn.