STEP 7: Let's create a function for our battle scene!

  • In LOGIC, go to . Drag Define Function to the bottom of your program.
  • Change the function name to battle_scene().
  • In GRAPHICS, go to and drop the Dragon into your function.
  • Position the dragon sprite at (150, -150). (Hint: add coordinates after the image label!)

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)