Countdown clock/timer in C
Hi, I have to create a game for my data structure class and one of the requirement is to allow the player to fininsh the game in 10 minutes. I went online and look up on time.h, but i still haven''t figure a way in create a "clock" that updates each seconds..
Can somebody please help? I can''t use any windows.h so i have to stick with time.h
thx
What about mmsystem.h? The most used time call is the millisec timer timeGetTime()
Mark
Bytten Independent Games Magazine
http://www.bytten.com
Mark
Bytten Independent Games Magazine
http://www.bytten.com
The function time() in time.h updates every second.
Qui fut tout, et qui ne fut rien
Invader''s Realm
Qui fut tout, et qui ne fut rien
Invader''s Realm
I think hes missing the "game loop" system. Depending on the language and the game type, it can be an hassle to do it.
Say you are coding a simple console game and need input for instance, say a othello game... Going through a loop wouldb't be as practical as waiting for input.
[edited by - xMcBainx on March 31, 2003 5:26:12 PM]
Say you are coding a simple console game and need input for instance, say a othello game... Going through a loop wouldb't be as practical as waiting for input.
[edited by - xMcBainx on March 31, 2003 5:26:12 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement