From a07f7aa61f9b8be70e3426c82fa263c57b5d2845 Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Sun, 16 Jan 2022 18:29:34 -0500 Subject: [PATCH] Change key for AI toggle --- examples/Pong-Example-Project/script.slg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Pong-Example-Project/script.slg b/examples/Pong-Example-Project/script.slg index 58be4b5..e34f7f6 100644 --- a/examples/Pong-Example-Project/script.slg +++ b/examples/Pong-Example-Project/script.slg @@ -54,7 +54,7 @@ func Start() global Text scoreTextTwo = SLB.Graphics.Text("0", "./arial.ttf", scoreTwoPos, 60, 0, 255, 255, 255) Vec2 instructionsPos = NVec2(centerOfScreen.x, SCREENH - 60) - global Text instructionsText = SLB.Graphics.Text("Use 'W' and 'S' or 'UP' and 'DOWN' arrows to control or press '0' zero to toggle AI", "./arial.ttf", instructionsPos, 20, 0, 255, 255, 255) + global Text instructionsText = SLB.Graphics.Text("Use 'W' and 'S' or 'UP' and 'DOWN' arrows to control or press 'ENTER' to toggle AI", "./arial.ttf", instructionsPos, 20, 0, 255, 255, 255) global Vec2 ballVelocity = NVec2(ballSpeed, ballSpeed) } @@ -139,7 +139,7 @@ func Update(deltaTime) float lerpedY = Lerp(oldY, newY, stopSpeed) rPaddle.position = NVec2(newX, lerpedY) - if GetKey("0") == true + if GetKey("ENTER") == true { if aiOn == true {