Close
Close full mode
logoMakeCode AP CSP

Optional Activity: Coordinate Walker

If you want students to work through an activity to learn about the coordinates in MakeCode Arcade, you can share the coordinate-walker code with them and then ask them to answer the questions below the embedded program.

coordinate-walker

Two dimensional game screen coordinates are represented by values for X and Y axis locations.

Coordinate grid
Coordinate grid

Using the coordinate-walker program above, move to the sprite to the top edge of the screen

  • What is the Y coordinate at the top of the screen?

Top left corner of the screen
Top left corner of the screen

Now, Move to each of the corners and map the coordinates as a pair of X and Y values like (X, Y):

  • Restart the game. What are the coordinates at the start?
  • Record what the coordinates at the Top Right corner are
  • Record what the coordinates at the Bottom Right corner are
  • Record what the coordinates at the Bottom Left corner are
  • Record what the coordinates at the Top Left corner are
  • Record what the Game Screen Dimensions (height by width) are

Coordintes of the corners
Coordintes of the corners

Record the results from this task in a simple diagram like the one below.

Result coordinate values
Result coordinate values

📘 Unit 3 - AAP Part 1 — Previous
Intro to Variables and Sprites
Next — 📘 Unit 3 - AAP Part 1
Day 6