| | |
Bouncing Ball (Dev C++ GUI code)
Please support our C++ advertiser: Intel Parallel Studio Home
0
•
•
•
•
You can change the speed in this commented line:
// 50ms here, lower value gives higher speed
SetTimer((HWND)Form1,1,50,NULL);
// 50ms here, lower value gives higher speed
SetTimer((HWND)Form1,1,50,NULL);
0
•
•
•
•
There is a problem, I just haven't found it yet. :lol: Just kidding. Looks great and works fine. Kudo's.
0
•
•
•
•
Am a new c++ programmer.
I refer to the code " Bouncing Ball" which is a GUI, now there is a rectangle created, i managed to change the color the rectangle in the main window and what my may problem is how to make the rectangle fixed and not only increase to be a full rectangle after the ball has hit both ends, how do i achieve that?
Secondly, i would love to then after making a 'fixed' rectangle, i would like to make the ball change color as it hits one side of the rectangle and change back to the original color as its starts coming back and approaches the other side and again change color as it hits the other side and change back again as it approaches the other side and keep repeating this cycle...
I need the rectangle to be fully drawn or fixed EVEN before the ball starts moving and then the change of colors issue.
PLEASE ASSITS
I refer to the code " Bouncing Ball" which is a GUI, now there is a rectangle created, i managed to change the color the rectangle in the main window and what my may problem is how to make the rectangle fixed and not only increase to be a full rectangle after the ball has hit both ends, how do i achieve that?
Secondly, i would love to then after making a 'fixed' rectangle, i would like to make the ball change color as it hits one side of the rectangle and change back to the original color as its starts coming back and approaches the other side and again change color as it hits the other side and change back again as it approaches the other side and keep repeating this cycle...
I need the rectangle to be fully drawn or fixed EVEN before the ball starts moving and then the change of colors issue.
PLEASE ASSITS
Similar Threads
- bouncing ball project (C)
- Breakout Ball bouncing physics (Game Development)
- Bouncing ball Program (Java)
- RE:" THE BOUNCING BALL in C++" (C++)
- bouncing ball? (C#)
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets


