Direct Draw 7 and Sprites

This is a discussion on Direct Draw 7 and Sprites within the Game Programming forums, part of the General Programming Boards category; Hi! I am quite new to DirectDraw. I intend to make a 2D game, but I cannot figure out how ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    73

    Direct Draw 7 and Sprites

    Hi!

    I am quite new to DirectDraw. I intend to make a 2D game, but I cannot figure out how to animate sprites. I have, of course, read sunlight's tutorials on DirectDraw, but I found them to be lacking.

    Can someone please point me to a sprite tutorial that uses DirectDraw7? I have considered the possibility of using OpenGL to create my 2D game, as I like it much better than Direct x on a whole. However, I cannot find any 2D game tutorials that address the questions of sprites and animation ( I of course tried NeHe's great site).

    Can someone please give me a link to a sprite/2D game tutorial in either DirectDraw or OpenGL? Thank you so much for any help you may be able to provided!

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Animated sprites in DirectDraw? The same as you would do in GDI and (likely) most other graphics things. Load a bitmap which is a strip of frames of animation, and draw only a section at a time, which is the frame that you want. Or maybe you could do buffer-flipping, with a primary and a bunch of attached surfaces or something... never tried that though.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21