|
-
Jan 28th, 2002, 05:04 AM
#1
Thread Starter
Fanatic Member
[Resolved] DirectX (DDraw) HighScore
I want to add a highscore list to the game I'm making and my question is: How should I display the highscorelist? Should I make another form with all new surfaces and just hide/show the different forms or should I hide the surfaces I have for the game and display highscorelist surfaces?
Thanks
Last edited by McCain; Feb 17th, 2003 at 07:06 PM.
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jan 28th, 2002, 10:16 AM
#2
Fanatic Member
Change the surface you're displaying...
Here's an old game I once made, also display a highscore list, might be useful to you: http://psprogramming.virtualave.net/...eattackdx.html
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jan 28th, 2002, 03:55 PM
#3
Thread Starter
Fanatic Member
Ok, I d/led your game but it didn't work, when I tried to open it in vb it said it could not find the Credits class so I couldn't run it. When I tried the exe it said "Run-time error '91': Object variable or With block variable not set." I looked at the sourcecode but it was to complicated - I've never used classes, hell, I don't even know how/why to use modules...
How many surfaces can one use? (I know it depends on how much RAM you have, but how many are reasonable?) I mean, I have 8 surfaces and the game I'm making is a pong game... (I know it has been done like a million times before but it's my first DX game, ok?)
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jan 28th, 2002, 04:01 PM
#4
Fanatic Member
Depends on how much memory you've got and how large the surfaces are, but even with a low-end pc you can store a lot more than 8 surfaces, so don't worry about that
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jan 28th, 2002, 07:56 PM
#5
Thread Starter
Fanatic Member
Now I have a new problem with my highscorelist...
How do I get the player's name? Do I have to use some wicked KeyPress code?
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jan 28th, 2002, 08:03 PM
#6
Thread Starter
Fanatic Member
Another question: How do I display text in different sizes? Like if I wanted some text to be in size 12 and some other text to be in size 20
Last edited by McCain; Jan 28th, 2002 at 08:19 PM.
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jan 29th, 2002, 03:27 AM
#7
Fanatic Member
1. Yes, you'll have to implement your own textbox-like field. I think it is possible to use the default one, but I don't know how and I think it looks ugly 
2. Change the font between two TextOut calls...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jan 29th, 2002, 12:52 PM
#8
Thread Starter
Fanatic Member
Could you please give me some help with the textbox code, I have no idea where to start...
TextOut? I use "Call backbuffer.DrawText(X, Y, "text", False)" to display my text...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jan 29th, 2002, 07:06 PM
#9
Thread Starter
Fanatic Member
Ok, I got the textsize thing sorted out, now I only have to figure out the input thing...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Feb 3rd, 2002, 04:12 PM
#10
Thread Starter
Fanatic Member
Easy
It was even easier then I thought it would be, all I had to do was to use the KeyDown and Chr() to get the key and put in a string. Now I have a beutifully (?) writen HighScore system using a .ran file
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
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
|