Side Scrolling

This is a discussion on Side Scrolling within the Windows Programming forums, part of the Platform Specific Boards category; Alright I know everybody is gonna tell me use DirectX for your game programming. I am not really writing a ...

  1. #1
    Unregistered
    Guest

    Side Scrolling

    Alright I know everybody is gonna tell me use DirectX for your game programming. I am not really writing a game for a school project I just wanna make a beginning to a side scrolling game in windows. So what I wanna do is have a window that you can scroll back and forth a bitmap with the arrow keys. CAn this be down. I don't want scroll bars or anything just have like a

    case WM_KEYDOWN:
    case VK_RIGHTARROW:
    {scrollbitmap here}

    something like that it probably isn't the real thing and I don't even know if those are the right messages probably has somethings to do with lPararm and wParam but you get the point.

    Ryan

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    you have three posibilities,

    1. Windows GDI
    2. OpenGL
    3. Direct-X

    i personally recommend OpenGL, the GDI is slow and difficult to use, Direct-X just dont get me started...
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    In WIN32 API use some HDC's and ScrollDC()
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Side scrolling?
    By Akkernight in forum Game Programming
    Replies: 2
    Last Post: 01-31-2009, 01:37 PM
  2. OpenGL example cube is black, white, grey only
    By edwardtisdale in forum Windows Programming
    Replies: 7
    Last Post: 09-22-2007, 03:37 PM
  3. Strange side effects?
    By _Elixia_ in forum C Programming
    Replies: 4
    Last Post: 08-16-2005, 04:25 PM
  4. printSquare( side ); ???
    By o0o in forum C++ Programming
    Replies: 2
    Last Post: 01-09-2004, 05:50 AM
  5. Scrolling
    By PJYelton in forum Windows Programming
    Replies: 10
    Last Post: 03-24-2003, 10:04 AM

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