6.3.5 Cmu Cs Academy Portable May 2026

Using centerX , centerY , and rotateAngle within a repeating loop.

Example: if (icon.right >= 400 or icon.left <= 0): icon.dx *= -1 .

The exercise is designed to test your understanding of how to update object properties continuously. 6.3.5 Cmu Cs Academy

This function runs automatically multiple times per second. You must update the centerX and rotateAngle of your person here. person.centerX += 5 (moves the person right) person.rotateAngle += 10 (rotates the person)

You must write conditional statements ( if/elif/else ) to check if an object has hit a boundary or completed a cycle, then reverse its direction or reset its position. Step-by-Step Breakdown for "Continuous Cartwheels" Using centerX , centerY , and rotateAngle within

Many students struggle with the variation of 6.3.5, where an icon must "bounce" off the walls.

In the "Continuous Cartwheels" version (6.3.5), the objective is to make a stick person move horizontally while rotating. You must update the centerX and rotateAngle of

To make an object bounce, you must check its edges against the canvas width/height.