From 967e813327ad6b306f4b6dc7fa76dee86347c863 Mon Sep 17 00:00:00 2001 From: Nitish sharma <75838617+Nitz2611@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:27:36 +0530 Subject: [PATCH] fix(curriculum): hint in step 46 of platformer game (#53970) Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../64acf287857bb38e6dd7ca69.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index 2bd897669c9..d7e624dcbea 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -15,7 +15,7 @@ You need to use the `proportionalSize` function here to make sure the player's ` # --hints-- -You should have an `if` statement that checks if the right key was pressed and the player's `x` position is less than `proportionalSize(400)`. +You should have an `if` statement that checks if the right key was pressed and the player's `x` position is less than `proportionalSize(400)`. Remember that the `this` keyword should not be used here because that is only for the `Player` class and not for the `player` object. ```js assert.match(animate.toString(), /keys\.rightKey\.(pressed|pressed\s*===\s*true)\s*&&\s*player\.position\.x\s*<\s*proportionalSize\(\s*400\s*\)/);