DO NOW · CSE 1.1.2 Which Way Does Y Go? 9:00
0 of 5 complete

Tap through the challenges. Some you'll figure out by doing — you haven't built this yet, and that's the point. Aim for 7–10 minutes.

Challenge 1 · Coordinate Hunt

Tap the screen to hit the target

Target: tap the corner where (0, 0) lives.

tap the grid…

Challenge 2 · Tilt the Phone

Feel the accelerometer

Tap the arrows to tilt. Watch the two numbers change — that's what the sensor "feels."

xAccel: 0.0
yAccel: 0.0

Now tilt hard to the RIGHT, then answer:

Which value changed the most?

Challenge 3 · Predict the Code

What will the face do?

These blocks run every time the sensor changes. Make your best prediction — no wrong answers here.

when AccelerometerSensor1 . AccelerationChanged set Happy . X to ( Happy.X − xAccel × 3 ) set Happy . Y to ( Happy.Y + yAccel × 3 )
Challenge 4 · Word Hunch

What does "initialize" mean?

You'll see this word a lot today. In your own words, take a guess:

Or tap the closest hunch:

Done!

Nice — brain warmed up. 🧠⚡

Here's your answer log. Copy it and drop it where Mr. Babb asks, then start the lesson.

Start the lesson →

Watch for: on a screen Y grows downward, tilting sideways moves xAccel, and you'll learn exactly what initialize means in Section 4.

This page does not save your work. Finish in one sitting. · classwithmrbabb.com