Tell us what’s happening:
As far as I know, I’ve followed the instruction of creating an object within the array, along with an x property with a value of 500, and a y property with a value of proportionalSize(450). The error message is not giving me any sort of indication of what I am doing wrong - it’s simply telling me to do what I’ve already done.
In searching for related issues, the only question pertaining to this step looks completely different from the step that I’m on.
" You should have an object with an x
property with a value of 500
and a y
property with a value of proportionalSize(450)
. You are using the proportionalSize()
function here to make sure the y
value is proportional to the screen size."
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const platformPositions = [
{
x: 500,
y: proportionalSize(450),
}
];
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Learn Intermediate OOP by Building a Platformer Game - Step 72