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.

Newcomers DBPro Corner / high score board

Author
Message
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 2nd Jul 2005 22:34
Hi could anyone show me how to make a high score board for my game.
ive looked every where but i can't find the awnser.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Jul 2005 01:51
The simplest way to start:

1. Save your high scores in an array.
2. At suitable points, save it out to a text file.
3. To display, write text to the screen, perhaps with a nice background image. Using CENTER TEXT would be simplest.

Once you've done this, you'll get some bigger, better ideas as you work on it.

BatVink
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 3rd Jul 2005 05:11
That's funny I was going to do just that after I looked at the messages. BatVink is right. Define an array (and make fake score info). Then write a function that saves to a file. Then make one that loads that file and put the scores into the array. All you need then is a function that checks the score vs the scores in the array and call the save score function. The main help file you want to look at is the list titled File Commands.
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 10th Jul 2005 07:31
Use something along these lines:

______________________________________
<<<<Check out my websites>>>>
www.rhettgames.tk www.marvel-us-media.tk
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 13th Jul 2005 12:37 Edited at: 13th Jul 2005 12:37



Current Projects: SHADE - Game Maker | Mecho - TGC Puzzle Entry | Halo Physics Engine | COLD - Polygonal Collision Detection

Login to post a reply

Server time is: 2024-09-23 23:30:12
Your offset time is: 2024-09-23 23:30:12