|
-
Jun 23rd, 2001, 11:01 AM
#1
Thread Starter
New Member
Hiscore
Hi again!I am almost to finish my game but I have one problem.I want to make a hiscore table showing the best 3 players of the game and updated automatically when someone do better score.I have something in my mind but I would like to create it in a class module so it's difficult.I have written the lander game but I don't prefer to save in the registry.Any suggestions?
-
Jun 23rd, 2001, 11:05 AM
#2
You could do it in the registry or just simply in an external file, but make sure you encrypt it.
-
Jun 24th, 2001, 07:44 AM
#3
Frenzied Member
There's no need to encrypt it, just save the names like this:
VB Code:
'To write it:
Open App.Path & "\highscore.dat" For Random As #1
Write #1, Player1Score
Write #1, Player1Name
Write #1, Player21Score
Write #1, Player2Name
Write #1, Player3Score
Write #1, Player3Name
Close #1
'To read it:
Open App.Path & "\highscore.dat" For Random As #1
Read #1, Player1Score
Read #1, Player1Name
Read #1, Player21Score
Read #1, Player2Name
Read #1, Player3Score
Read #1, Player3Name
Close #1
-
Jun 24th, 2001, 03:13 PM
#4
Fanatic Member
There's a highscore table in one of my games, using INI files. The game can be found at my old site (http://psprogramming.virtualave.net/...eattackdx.html), the highscore loading and saving code is in the clsHighscore class module...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|