4 of 1 ·Build challenge

Lesson 4 · Creative Coding
Put conditions to work in a small game.
Conditions
An if/else chooses between two actions. If the character touches the goal, show You win; otherwise keep playing. Point to the question and each action in a supplied example.
Click to zoomCombine movement, a loop and conditions so the player wins only when they reach the goal without touching an obstacle.
2 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.