Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / simulation timebar

Author
Message
soadjason
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location:
Posted: 19th Jun 2005 01:55
Here is my code for a timebar for my simulation game. You can control the speed of the game(with the up and down arrow keys) and pause the game(with the "p" key). This also shows the day of week,month,and year(actual dates with leap years). I will continue to tweak the code as I make more of the game, but so far this works.
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 21st Jun 2005 08:57
Nice program, just incase you haven't noticed speed bar only updates itself when clock changes.

Trevor Somerville
soadjason
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location:
Posted: 25th Jun 2005 11:29
Thanks Trev. I think later I will use sprites to update instantly.

Login to post a reply

Server time is: 2024-11-23 11:01:27
Your offset time is: 2024-11-23 11:01:27