Interactive 3D world for level 4.2. Hold Control or Command and drag to orbit or scroll to zoom. Touch users can drag or pinch.

Ctrl / ⌘ + drag to orbit · Ctrl / ⌘ + scroll to zoomDrag to orbit · Pinch to zoom

LESSON 4.2

Give a Function an Input

A parameter is a value a function receives: fn name(steps: Int32) . Use it inside the function to make its behavior depend on the input.

Goal Collect both coins and reach the goal by giving walk_and_collect a steps: Int32 parameter.

Write a Zirk program, then run it to see the world react.
Sound unavailable in this browser