Game Dev From Zero · Episode 5

Coordinate hunt

This is a 320 × 180 screen, the same size as PALE WHISPERS. Every pixel has an address (x, y): x counts across from the left, and y counts down from the top. Point anywhere to see where you are.

The screen (0, 0) is the top-left

You're pointing at: (-, -)

x goes right →, y goes down ↓. The bottom-right pixel is (319, 179): we start counting at 0.

Things to try

  1. Point at the four corners. Why is the bottom-right (319, 179) and not (320, 180)?
  2. Find the exact middle of the screen. (Hint: half of 320, half of 180.)
  3. Press y - 10 a few times. Which way does the ghost go?
  4. Move the ghost to (300, 20). Then to (20, 160). Which corner is each one near?
  5. Play the treasure hunt without the "pointing at" readout: just follow the hints!

The player a position: two numbers, one thing

player
(160, 90)
set player to position ( , )

Treasure hunt click the screen to dig

A soul is hidden at (?, ?)
Click where you think it is.
Found: 0