Thread: Collect Coins & Score System

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    60

    Collect Coins & Score System

    This is my prog's code:
    http://www.geocities.com/c_pruell/twoyearsago.txt
    And this is the program, to some extent I'm satisfied with this simple 'game':
    http://www.geocities.com/c_pruell/Example.zip

    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
    Posts
    317
    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
    http://www.rpi.edu/~pudeyo/font_engine.html

    [edit]
    here is another one
    http://www.drunkenhyena.com/cgi-bin/...le=17;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 http://xkcd.com/235/

  3. #3
    ---
    Join Date
    May 2004
    Posts
    1,379
    Yuor game made my computer crash, thanks.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    60

    ooops

    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
    Posts
    704
    Um, try the d3d api help and look for something like ID3DText3D or something. It's been a long time since I did dx.
    c++->visualc++->directx->opengl->c++;
    (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