Possible solutions I think are flushing the input buffer (where is getch() or _getch() getting it's input?) or just using all single character keys and disabling the arrow keys.Īny ideas are appreciated. They don't seem to miz well as I can't check for 2 every time as it will slow the space bar presses (to shoot) or if theye are using the wasd keys.Īlso, it seems to 'lock up' when I press too many kney at once, is there a way to avoid this? Ive been programming for 40 years, but Ive never done much GUI stuff. Anyhow Dave, sorry for taking your thread off track, and Heater, just ask anytime. It was actually Dave that I had some of these discussions with. So unless Dave is interested in a GUI for his simulator thats it. I've had issues with thee fact that the arrow keys have 2 characters tied to them and the regular (wasd and space keys) only have one. Programmers: Conio.H'S Kbhit Equivalent Simulator Thats It. I'm working on making a small program now (write small pieces before modifying the main source) to move a ship '/' accross the bottom of the screen. It's pretty cool so far, I got the shooting and the random enemies, there's not much more to do. I'm making a space invaders game in the command prompt. I saw some project online and downloaded the source code and tried to compile it on my Mac. I'm putting this under windows programming becuase I think that's a windows header. conio.h on mac os I am really sorry to ask this here, but I'm a beginner (like really beginner) in C language and I can't find a solution to my problem anywhere on the web.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |