1. Change the shape
Modify the program to draw other kinds of shapes in stead of the ellipse. Change the direction of the shape, or make it spin while it moves.
2. Three's a party
Modify the program to draw multiple (at least 3) shapes at the same time. Carefully plan the initialiser program to ensure they go at different directions and with different speeds. Otherwise it'd be boring!
3. There's an end to every movement
Modify the program to introduce an energy loss at each bounce, to mimic the real world physics. At each bounce the speed will reduce, eventually the shape would stop at some point.
4. Get me out of this!
This is difficult, and fun. Look up Arcade docs to see how to add keyboard interactions to the program.
Modify the program to include keyboard interaction. When a certain key is hit, the shape can stop, or reverse!
No comments:
Post a Comment