Open dongtimes2 opened 11 months ago
$\text{Paddle의 y좌표 시작점} = \text{전달받은 값} \times \text{(Canvas 높이 - Paddle 높이)}$
$\text{canvas width} / 20 + \text{canvas width} / 80 \leq x \leq \text{canvas width} / 20 + \text{canvas width} / 40$ $\text{paddle y좌표 시작점} \leq y \leq \text{paddle y좌표 시작점} + \text{paddle 길이} - \text{canvas width} / 40$