Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


I decided to make my moving image a simpler version of a ball factory:


Mine would have to be much simpler. I started by making a function, ramp_init, that draws a pair of ramps: one going up and one going down. I used the Zelle graphics library's Polygon function to draw a pair of triangles. Then I added those triangles, which are technically objects, to a list I called shapes. Then when want to draw the triangles I can simply use Zelle's draw function on that list. I essentially turned two drawing functions into one, which would save more time had I more shapes to draw.