We've already calculated the x and y distance, so now we can calculate the straight-line, or "
actual distance" by using good ol' Pythagorean Theorem
- We square the x and y by multiplying them by themselves
- We add them together
- We take the square root using the built-in Math.sqrt() function
var actual_distance = Math.sqrt(distance_x * distance_x + distance_y * distance_y); // Thanks, Pythagoras!