fix(curriculum): Platformer Game specify argument for height property (#55826)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Supravisor
2024-08-19 19:18:14 +12:00
committed by GitHub
parent d50a0712dd
commit e0bda03fbb
@@ -15,6 +15,13 @@ Remember to use the `this` keyword to access the properties.
You should have a `height` property.
```js
const splitter = code.split("if (this.position.x < this.width) {")
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*\d+\s*\)\s*;?/);
```
You should assign `proportionalSize(40)` to the `height` property.
```js
const splitter = code.split("if (this.position.x < this.width) {")
assert.match(splitter[1], /this\.height\s*=\s*proportionalSize\(\s*40\s*\)\s*;?/);