math · reference
atan2·
The angle toward a point: atan2(target.y - y, target.x - x) aims at a target.
- use
atan2(y, x)- y
- the block starts with
10 - x
- the block starts with
10 - kind
- a value: it goes inside another block
- drawer
- Math, in the code room's blocks
player two knows this block
Ask it how atan2 works in your game.