Results 1 to 8 of 8

Thread: writing a game

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    8

    writing a game

    how do you write a game for examplehow do you make a picture jump by pressing the up arrow key?

  2. #2
    denniswrenn
    Guest
    I'm assuming you're using Visual Basic?

    For almost acceptable speed, you must use the GDI functions(BitBlt, etc.). You can use picture boxes and move them, but it's slow as all hell... The best way would be to use OpenGL or DirectX... But of course, if you wanted the best way, it would be with C++...


    Take a look at Fox's website for some tutorials on simple animation and movement.

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    It doesn't matter if you BitBlt in VB or in C++, BitBlt will perform just as fast... the problem lies in the code between each render... if you want that fast, try ASM instead

    I would not recommend diving into DirectX or OpenGL, try to learn BitBlt instead...
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    ...But once you get really comfortable with Bitblt/VB you shold try your hand at DirectDraw (DX7)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    8
    I am a newbie i don't understand what you are sayin !

  6. #6
    Lively Member The Hand's Avatar
    Join Date
    Jun 2001
    Posts
    88
    Originally posted by z5x5
    I am a newbie i don't understand what you are sayin !
    Then the last thing you should be trying right now is writing a game... Try something simple, like a "hello world".

    -Hand out
    Visit EliteVB for slimy subclassing tricks and GDI32 goodness.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    8
    not a real newbie i know how to do lots of stuff i made my own personal program for aol chat you know those kinda tools i would there used to be a program called magic toolz i think it has like faders and scrollers and stuff like that i made somthin like that for me!

  8. #8
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Read my Tutorial then.. not finished yet but helps you alot

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