CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Jan 2004
    Posts
    48

    [MFC] How to make a ball bounce off from an object?

    How would i make the ball bounce off from the object (bitmap) in MFC? (look at the picture below)
    How would i set the boundaries and stuff?
    Does anyone have the code?
    I really really need help....i need to complete my project soon.

    just in case you want to know, the bitmap size is 40 x 40.
    don't know if it matters though.
    and remember, i want the ball to bounce off from all four sides of the bitmap, and it would just repeat this process over and over.
    Attached Images Attached Images
    Last edited by hkboy1019; April 27th, 2004 at 09:12 PM.

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

Featured