Example: if (icon.right >= 400 or icon.left <= 0): icon.dx *= -1 .
Unit 6 is a turning point in the CMU CS Academy curriculum. It shifts from static drawings to . Mastering 6.3.5 proves you can handle multiple variables changing at once—a fundamental skill for game development and advanced simulation.
Successfully animate a group of shapes (like a stick figure or a "DVD" icon) so they move across the canvas while rotating or bouncing off edges.
Many students struggle with the variation of 6.3.5, where an icon must "bounce" off the walls.
If you're stuck, the Documentation - CMU CS Academy provides syntax reminders for every shape and property.
In the "Continuous Cartwheels" version (6.3.5), the objective is to make a stick person move horizontally while rotating.
To make an object bounce, you must check its edges against the canvas width/height.
