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>
pull/53740/head
Nitish sharma 2024-03-05 12:27:36 +05:30 committed by GitHub
parent 96059eab4f
commit 967e813327
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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*\)/);