Quote:
Originally Posted by MBirchmeier
Keep in mind a bitmap is a static image. Perhaps you're looking to create a bitmap, or perhaps you're looking to create an animation.
|
It sounds like the task is to create a series of still frames that can then be compiled into an animation separately.
Quote:
|
Originally Posted by josec
yeah i've payed attention in class and right now we just finished pointers. however, this porject is my final project and the professor wants us to do something that would challenge ourselves. so that's why i've been researching and looking around to ways to write this program.
|
I'd start off simple, and build up. For instance, you could do this:
1. Create a program that reads in a text file and changes every other letter to an x. For instance, if you have a text file with "Hello World", your program would create a text file with "HxlxoxWxrxd".
2. Create a program that creates a series of text files in which an X moves horizontally across the page. e.g.
1.txt:
....
x...
....
2.txt:
....
.x..
....
3.txt:
....
..x.
....
4.txt:
....
...x
....
3. Expand the program in step 2 so that the ball moves diagonally around, bouncing off the edges when it reaches them.
4. Create a program that reads in a bitmap, and creates a new bitmap from it where every other pixel is set to black.
5. Create a program that reads in a bitmap, and displays a new bitmap from it with a black square in the middle.
6. Create a program that reads in a large bitmap and a small bitmap, and produces combination bitmap with the small bitmap in the centre of the large bitmap.
7. Expand exercise 6 to produce a series of bitmaps, where the smaller bitmap inches its way across the larger bitmap.
8. Create your final bouncing ball program.
Hope that helps!