From e24ef69e0fcd59d8b3d1b48b1cc0f6f6b0fc1c89 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 31 Oct 2022 18:46:38 +0000 Subject: [PATCH] Should by y_tri --- book/src/pong/04_controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/pong/04_controls.md b/book/src/pong/04_controls.md index d62f2cd2..a324f5c7 100644 --- a/book/src/pong/04_controls.md +++ b/book/src/pong/04_controls.md @@ -39,7 +39,7 @@ loop { // x_tri and y_tri describe with -1, 0 and 1 which way the d-pad // buttons are being pressed x_velocity = input.x_tri() as i32; - y_velocity = input.y_try() as i32; + y_velocity = input.y_tri() as i32; ball.set_x(ball_x as u16).set_y(ball_y as u16);