Let's add the food!

  • Change the name of the random variable to x.
  • Go to and drag out Circle. Place it under x, inside the interval event.
  • Change its name to fish_food.
  • Change the x-coordinate of the circle to x. Change the y-coordinate to 260.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)