Results 1 to 10 of 10

Thread: [Resolved] DirectX (DDraw) HighScore

  1. #1

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Question [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

  2. #2
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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)

  3. #3

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  4. #4
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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)

  5. #5

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  6. #6

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  7. #7
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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)

  8. #8

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  9. #9

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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

  10. #10

    Thread Starter
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    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
  •  



Click Here to Expand Forum to Full Width