C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-18-2002, 05:38 PM   #16
Rebooted
 
Inquirer's Avatar
 
Join Date: Apr 2002
Posts: 281
Code:
int getch();
is also available.

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   Reply With Quote
Old 04-20-2002, 11:19 AM   #17
Registered User
 
Join Date: Dec 2001
Posts: 479
lol whats getche
pode is offline   Reply With Quote
Old 04-20-2002, 06:26 PM   #18
Rebooted
 
Inquirer's Avatar
 
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   Reply With Quote
Old 04-24-2002, 11:00 PM   #19
Registered User
 
Nutshell's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22