Thread: Collect Coins & Score System

  1. #1
    Registered User
    Join Date
    Dec 2001

    Collect Coins & Score System

    This is my prog's code:
    And this is the program, to some extent I'm satisfied with this simple 'game':

    Here is my problem:
    I'd like to implement some kind of 'Collect Coins & Get Scores as a reward' system, but can't find a way to produce Text Output with DirectX. There are no commands like 'DrawText' in DirectX. But I don't want to use API Functions, they don't seem to work together properly with DirectX. Will I need to create Sprites for the letters?? Perhaps one could get resources somewhere on the web, something like 'letters as Sprites for DirectX programers'? So far I couldn't find sth like that.
    Any help is welcome.
    Thx in advance.

  2. #2
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    I believe you can use Win32 Api TextOut for simple things for more complicated things You need some sort of a font engine. If you google for directx font engine there are plentyof tutorials This is one I found for Direct 3d

    here is another one;lang=cpp
    Last edited by manofsteel972; 12-07-2004 at 05:13 AM.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic

  3. #3
    Join Date
    May 2004
    Yuor game made my computer crash, thanks.

  4. #4
    Registered User
    Join Date
    Dec 2001


    Quote Originally Posted by sand_man
    Yuor game made my computer crash, thanks.
    ooops forgot to mention you need to press 'E' at any time to immediately stop it. sorry.

    Thx to you all, I've found a good resource due to your help.

  5. #5
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Um, try the d3d api help and look for something like ID3DText3D or something. It's been a long time since I did dx.
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 01:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 07:56 PM
  3. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  4. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 05:35 PM
  5. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 07:12 AM