![]() |
| | #16 |
| Rebooted Join Date: Apr 2002
Posts: 281
| Code: int getch(); Using the numpad is a good choice for movement keys, as all eight directions as well as the center can be implemented, and maybe even special implementations for the other eight buttons on there.
__________________ Compilers: GCC on Red Hat 8.1 (Primary) GCC on Mac OS X 10.2.4 (Secondary) Others: MinGW on XP |
| Inquirer is offline | |
| | #17 |
| Registered User Join Date: Dec 2001
Posts: 479
| lol whats getche |
| pode is offline | |
| | #18 |
| Rebooted Join Date: Apr 2002
Posts: 281
| getche() gets one key and returns the int that corresponds to it. it only gets one, and doesn't wait for the user to hit enter like getch()
__________________ Compilers: GCC on Red Hat 8.1 (Primary) GCC on Mac OS X 10.2.4 (Secondary) Others: MinGW on XP |
| Inquirer is offline | |
| | #19 |
| Registered User Join Date: Jan 2002
Posts: 1,020
| In DevC++, if you don't include the conio header file, getch(); doesn' wait for the return key as well. But when i include conio.c, it waits for the return key. How strange! |
| Nutshell is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open-source Game Project | Glorfindel | Projects and Job Recruitment | 0 | 03-24-2009 01:12 AM |
| A few questions on game programming | mramazing | Game Programming | 7 | 01-11-2009 05:48 AM |
| 20q game problems | Nexus-ZERO | C Programming | 24 | 12-17-2008 05:48 PM |
| 2D Game project requires extra C++ programmers, new or experienced | drallstars | Projects and Job Recruitment | 2 | 05-16-2007 10:46 AM |
| Someone help me with this game?? | stehigs321 | Game Programming | 15 | 10-30-2003 09:42 PM |